diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-03-12 16:01:33 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-03-12 16:01:33 -0300 |
commit | 3614509ad64cb8ba726450bf148a67df93f420e3 (patch) | |
tree | ee723cfb404778be04222b5a0bcf2ddfaaea9f36 /~fauno | |
parent | da3e14b1c0836ab3facc47d4645942d92b2f4760 (diff) |
~fauno/localepurge-0.6.2+nmu2-3
Diffstat (limited to '~fauno')
-rw-r--r-- | ~fauno/localepurge/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/~fauno/localepurge/PKGBUILD b/~fauno/localepurge/PKGBUILD new file mode 100644 index 000000000..61386db71 --- /dev/null +++ b/~fauno/localepurge/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Francesco Groccia <frgroccia gmail.com> +# Contributor: Dincer Celik <dincer@bornovali.com> + +pkgname=localepurge +pkgver=0.6.2+nmu2 +pkgrel=3 +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.gz" + "http://fgr.bitbucket.org/im/${pkgname}.patch" + "http://fgr.bitbucket.org/im/${pkgname}.8.patch" + "http://fgr.bitbucket.org/im/${pkgname}.config.patch" + "http://fgr.bitbucket.org/im/locale.nopurge") +sha1sums=('a23f77bc770483b3d6f45d1d7caffad8c0891655' + '6e2165f3bb8cf2c463816849a973ea088398605f' + '3ac6c0a3e30395e6ca1c1fd8cc530fdd84e2c98e' + 'ec56640d9bf1a908bac4884aa7a2ecde0ee33c8a' + 'ab47efc3f07d7224382e95d3a5b25355058869b4') + +build() +{ + #cd "${srcdir}/${pkgname}-${pkgver}" + patch -uN ${srcdir}/${pkgname}-${pkgver}/usr/sbin/localepurge < ${srcdir}/localepurge.patch + patch -uN ${srcdir}/${pkgname}-${pkgver}/debian/localepurge.8 < ${srcdir}/localepurge.8.patch + patch -uN ${srcdir}/${pkgname}-${pkgver}/debian/localepurge.config < ${srcdir}/localepurge.config.patch + install -D -m755 ${srcdir}/${pkgname}-${pkgver}/usr/sbin/localepurge ${pkgdir}/usr/sbin/localepurge + install -D -m644 ${srcdir}/${pkgname}-${pkgver}/debian/localepurge.8 ${pkgdir}/usr/share/man/man8/localepurge.8 + install -D -m755 ${srcdir}/${pkgname}-${pkgver}/debian/localepurge.config ${pkgdir}/usr/sbin/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 +} |