mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
41 lines
2 KiB
Bash
41 lines
2 KiB
Bash
# Maintainer: Francesco Groccia <frgroccia gmail.com>
|
|
# Contributor: Dincer Celik <dincer@bornovali.com>
|
|
|
|
plugrel=1
|
|
|
|
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
|
|
}
|