mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 13:14:48 +08:00
48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
#
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
# Contributor: Gene Kodadek <gkodadek@gmail.com>
|
|
|
|
pkgname=libpaper
|
|
pkgver=1.1.24
|
|
pkgrel=2
|
|
pkgdesc="Library for handling paper characteristics"
|
|
arch=('i686' 'x86_64')
|
|
url="http://packages.debian.org/unstable/source/libpaper"
|
|
license=('GPL')
|
|
depends=('sh')
|
|
backup=('etc/papersize')
|
|
source=("http://ftp.de.debian.org/debian/pool/main/libp/$pkgname/${pkgname}_$pkgver+nmu2.tar.gz")
|
|
sha256sums=('c5bdd6d9dff179699160675dbb61651d9b3158f6da27558fdaba00e7c427ba96')
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver+nmu2"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--sbindir=/usr/bin
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver+nmu2"
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# add systemwide default papersize read by many office applications
|
|
install -dm 755 $pkgdir/etc
|
|
echo '# Simply write the paper name. See papersize(5) for possible values' > $pkgdir/etc/papersize
|
|
|
|
# add libpaper.d directory other packages can use to store files
|
|
install -dm 755 $pkgdir/etc/libpaper.d
|
|
|
|
# add localisation
|
|
pushd debian/po
|
|
for i in `ls *.po`; do
|
|
install -dm 755 ${pkgdir}/usr/share/locale/${i%.po}/LC_MESSAGES/;
|
|
msgfmt $i -o ${pkgdir}/usr/share/locale/${i%.po}/LC_MESSAGES/${pkgname}.mo;
|
|
done
|
|
popd
|
|
}
|