opt/paper/Pkgfile

30 lines
755 B
Plaintext
Raw Normal View History

2019-07-30 15:55:25 +02:00
# Description: Utility to set the default paper size
2022-05-16 16:10:38 +02:00
# URL: https://github.com/rrthomas/paper/
# Maintainer: Juergen Daubert, jue at crux dot nu
2019-07-30 15:55:25 +02:00
name=paper
2022-05-16 16:10:38 +02:00
version=1.2.0
2019-07-30 15:55:25 +02:00
release=1
2022-05-16 16:10:38 +02:00
source=(https://github.com/rrthomas/libpaper/releases/download/v$version/lib$name-$version.tar.gz
paper.1 paperspecs.5 paperconfig.8)
2019-07-30 15:55:25 +02:00
build () {
2022-05-16 16:10:38 +02:00
cd lib$name-$version
2020-04-20 14:38:50 +02:00
2022-05-16 16:10:38 +02:00
sed '/^SUBDIRS/s/man//' -i Makefile.in
2020-04-20 14:38:50 +02:00
2022-05-16 16:10:38 +02:00
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/paper
make
make DESTDIR=$PKG install
2020-04-20 14:38:50 +02:00
2022-05-16 16:10:38 +02:00
install -d $PKG/usr/share/man/man{1,5,8}
install -m 0644 $SRC/paper.1 $PKG/usr/share/man/man1
install -m 0644 $SRC/paperspecs.5 $PKG/usr/share/man/man5
install -m 0644 $SRC/paperconfig.8 $PKG/usr/share/man/man8
2020-04-20 14:38:50 +02:00
2022-05-16 16:10:38 +02:00
rm -r $PKG/usr/share/doc
2019-07-30 15:55:25 +02:00
}