mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
38 lines
2.1 KiB
Bash
38 lines
2.1 KiB
Bash
# Maintainer: Francesco Groccia <frgroccia gmail.com>
|
|
# Contributor: Dincer Celik <dincer@bornovali.com>
|
|
|
|
pkgname=localepurge
|
|
pkgver=0.6.3
|
|
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/localepurge-arch/${pkgname}.patch"
|
|
"http://fgr.bitbucket.org/im/localepurge-arch/${pkgname}.8.patch"
|
|
"http://fgr.bitbucket.org/im/localepurge-arch/${pkgname}.config.patch"
|
|
"http://fgr.bitbucket.org/im/localepurge-arch/locale.nopurge")
|
|
sha256sums=('02f7e4a8b5919221a736abb3a937dffc48ffd275f0968e56612d518e1e69c30b'
|
|
'84b8abf57a1af27e5b50fcd5a12701a5980d85a187c5a3b3e3c3e5a79e28886d'
|
|
'e899dd39536f854b94fea9f72a38e1f50b255a35f80e1c1e811612603126e80a'
|
|
'1cf4c0e9651589502f953ae25654e5b5347de18995055adfb7a6d183a1c4c912'
|
|
'b9c28be93fa47d4f0315972159e501d9eef28bbab7ffe6e8e7c4a13c359f35e8')
|
|
|
|
build()
|
|
{
|
|
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
|
|
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
|
|
}
|