From 24da0ca0b59e2af1900803858d7e30c7fe12c5f4 Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Sun, 11 Dec 2022 12:01:24 +0300 Subject: [PATCH] Add locale-en_ru PKGBUILD and files --- locale-en_ru/.SRCINFO | 20 +++++++++++++++++++ locale-en_ru/PKGBUILD | 32 +++++++++++++++++++++++++++++++ locale-en_ru/locale-en_ru.hook | 10 ++++++++++ locale-en_ru/locale-en_ru.install | 7 +++++++ 4 files changed, 69 insertions(+) create mode 100644 locale-en_ru/.SRCINFO create mode 100644 locale-en_ru/PKGBUILD create mode 100644 locale-en_ru/locale-en_ru.hook create mode 100644 locale-en_ru/locale-en_ru.install diff --git a/locale-en_ru/.SRCINFO b/locale-en_ru/.SRCINFO new file mode 100644 index 0000000..8c1831c --- /dev/null +++ b/locale-en_ru/.SRCINFO @@ -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 diff --git a/locale-en_ru/PKGBUILD b/locale-en_ru/PKGBUILD new file mode 100644 index 0000000..4a7d333 --- /dev/null +++ b/locale-en_ru/PKGBUILD @@ -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 +} diff --git a/locale-en_ru/locale-en_ru.hook b/locale-en_ru/locale-en_ru.hook new file mode 100644 index 0000000..bb2616d --- /dev/null +++ b/locale-en_ru/locale-en_ru.hook @@ -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 + diff --git a/locale-en_ru/locale-en_ru.install b/locale-en_ru/locale-en_ru.install new file mode 100644 index 0000000..fe46b52 --- /dev/null +++ b/locale-en_ru/locale-en_ru.install @@ -0,0 +1,7 @@ +post_install() { + localedef -c -i en_RU -f UTF-8 en_RU.utf8 +} + +post_upgrade() { + post_install +}