diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-12-22 20:19:32 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-12-22 20:19:32 -0200 |
commit | ef443f51a8b0cf9eb3327f8c7a8cfb6699b2aa56 (patch) | |
tree | 34a408e467c06207db38861e21808beb2649ff9b /pcr/localepurge/PKGBUILD | |
parent | 018fb007e841fd6db3722db4376acbab1200efd7 (diff) | |
parent | d13f9136f9f442d90a3b2dfe7f9841f8a1e13ff2 (diff) | |
download | abslibre-ef443f51a8b0cf9eb3327f8c7a8cfb6699b2aa56.tar.gz abslibre-ef443f51a8b0cf9eb3327f8c7a8cfb6699b2aa56.tar.bz2 abslibre-ef443f51a8b0cf9eb3327f8c7a8cfb6699b2aa56.zip |
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre/abslibre
Diffstat (limited to 'pcr/localepurge/PKGBUILD')
-rw-r--r-- | pcr/localepurge/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/localepurge/PKGBUILD b/pcr/localepurge/PKGBUILD new file mode 100644 index 000000000..be13e0aeb --- /dev/null +++ b/pcr/localepurge/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux @ free.fr> +# Contributor: Francesco Groccia <frgroccia gmail.com> +# Contributor: Dincer Celik <dincer@bornovali.com> + +pkgname=localepurge +pkgver=0.7.3.4 +pkgrel=1 +pkgdesc="Script to remove disk space wasted for unneeded localizations." +arch=('any') +url="http://packages.debian.org/source/sid/localepurge" +license=('GPL') +backup=('etc/locale.nopurge') +source=("http://ftp.de.debian.org/debian/pool/main/l/localepurge/${pkgname}_${pkgver}.tar.xz" + "${pkgname}.patch" + "${pkgname}.8.patch" + "${pkgname}.config.patch" + "locale.nopurge") + +prepare() +{ + patch -uN ${srcdir}/${pkgname}/usr/sbin/localepurge < ${srcdir}/localepurge.patch + patch -uN ${srcdir}/${pkgname}/debian/localepurge.8 < ${srcdir}/localepurge.8.patch + patch -uN ${srcdir}/${pkgname}/debian/localepurge.config < ${srcdir}/localepurge.config.patch +} + +package() +{ + install -D -m755 ${srcdir}/${pkgname}/usr/sbin/localepurge ${pkgdir}/usr/bin/localepurge + install -D -m644 ${srcdir}/${pkgname}/debian/localepurge.8 ${pkgdir}/usr/share/man/man8/localepurge.8 + install -D -m755 ${srcdir}/${pkgname}/debian/localepurge.config ${pkgdir}/usr/bin/localepurge-config + install -D -m644 locale.nopurge ${pkgdir}/etc/locale.nopurge + if [ ! -e /var/cache/localepurge/localelist ]; then + find /usr/share/locale -maxdepth 1 -type d -name "*" -printf "%f\n" | grep "^[a-z]" | cut -d" " -f1 | sort -u > ${srcdir}/localelist + else + cp /var/cache/localepurge/localelist ${srcdir}/localelist + fi + install -D -m644 ${srcdir}/localelist ${pkgdir}/var/cache/localepurge/localelist +} +sha256sums=('18d933181bf455ce386b91794a6e8dc9026bd89dde29ca6fbcde34d3030e2060' + 'b8704eec22d0e84ada9a524277322f9892c11f3f4b84ec0dd4f50f0ca2dc7474' + '82bd40594ef0646465eed6e525368e87694322513c0d3280879fcfc5c40cb6a7' + 'b27e69a87f81ecb01ecd9fd92c174ed3c4406200eedc50ba6ebabce91e3851e8' + 'b9c28be93fa47d4f0315972159e501d9eef28bbab7ffe6e8e7c4a13c359f35e8') |