Add locale-en_ru PKGBUILD and files

This commit is contained in:
Ivan Bushchik 2022-12-11 12:01:24 +03:00
commit 24da0ca0b5
No known key found for this signature in database
GPG key ID: 3E4E9C7D66E44BF7
4 changed files with 69 additions and 0 deletions

20
locale-en_ru/.SRCINFO Normal file
View file

@ -0,0 +1,20 @@
pkgbase = locale-en_ru
pkgdesc = English language locale for Russia
pkgver = 0.5.5
pkgrel = 1
install = locale-en_ru.install
arch = any
license = GPL3
makedepends = make
makedepends = perl
source = https://master.dl.sourceforge.net/project/en-ru/0.5.5/locale-en_RU-0.5.5.tar.gz?viasf=1
source = locale-en_ru.install
source = locale-en_ru.hook
md5sums = 243ec7798704c5de088045831d2cf145
md5sums = 549b2a924c93f2366e4b00e2c0bfc408
md5sums = 231deca63eac4228f72deabbafa2e406
sha1sums = c82dc3f2947eaf8a83bf53c5f1ecfacb3743bbe7
sha1sums = d8e7ea79941e69d13d0e4851762f4e6029574378
sha1sums = d8f6a058eda3c7596e563a19d55d88c4fc548e6f
pkgname = locale-en_ru

32
locale-en_ru/PKGBUILD Normal file
View file

@ -0,0 +1,32 @@
# Maintainer: Ivan 'ivabus' Bushchik ivabus@ivabus.dev -> https://github.com/ivabus
pkgname=locale-en_ru
pkgver=0.5.5
pkgrel=1
pkgdesc='English language locale for Russia'
arch=(any)
license=(GPL3)
makedepends=(make perl)
source=(https://master.dl.sourceforge.net/project/en-ru/0.5.5/locale-en_RU-0.5.5.tar.gz?viasf=1
locale-en_ru.install
locale-en_ru.hook)
sha1sums=("c82dc3f2947eaf8a83bf53c5f1ecfacb3743bbe7"
"d8e7ea79941e69d13d0e4851762f4e6029574378"
"d8f6a058eda3c7596e563a19d55d88c4fc548e6f")
md5sums=("243ec7798704c5de088045831d2cf145"
"549b2a924c93f2366e4b00e2c0bfc408"
"231deca63eac4228f72deabbafa2e406")
install="locale-en_ru.install"
build() {
cd $srcdir/locale-en_RU-$pkgver
mkdir _build
cd _build
../configure --prefix=/usr --disable-rpm --disable-html --enable-ruble-sign
make
}
package() {
cd $srcdir/locale-en_RU-$pkgver/_build
make DESTDIR="$pkgdir/" install
mkdir -p $pkgdir/usr/share/libalpm/hooks
cp $srcdir/locale-en_ru.hook $pkgdir/usr/share/libalpm/hooks
}

View file

@ -0,0 +1,10 @@
[Trigger]
Operation = Upgrade
Type = Package
Target = glibc
[Action]
Description = Update en_RU.UTF-8 locale
Depends = locale-en_ru
When = PostTransaction
Exec = /usr/bin/localedef -c -i en_RU -f UTF-8 en_RU.utf8

View file

@ -0,0 +1,7 @@
post_install() {
localedef -c -i en_RU -f UTF-8 en_RU.utf8
}
post_upgrade() {
post_install
}