summaryrefslogtreecommitdiff
path: root/paper/Pkgfile
blob: 2c0fd0169f3aaa8cd87c485428a5b6ebc36d8688 (plain)
    1 # Description: Utility to set the default paper size
    2 # URL:         https://github.com/rrthomas/paper/
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 
    5 name=paper
    6 version=2.3
    7 release=1
    8 source=(https://github.com/rrthomas/paper/releases/download/v$version/$name-$version.tar.gz
    9         paper.1 paperspecs.5)
   10 
   11 build () {
   12     cd $name-$version
   13 
   14     sed '/^SUBDIRS/s/man//' -i Makefile.in
   15 
   16     ./configure --prefix=/usr \
   17                 --sysconfdir=/etc \
   18                 --libexecdir=/usr/lib/paper
   19     make
   20     make DESTDIR=$PKG install
   21 
   22     install -d $PKG/usr/share/man/man{1,5}
   23     install -m 0644 $SRC/paper.1 $PKG/usr/share/man/man1
   24     install -m 0644 $SRC/paperspecs.5 $PKG/usr/share/man/man5
   25 
   26     rm -r $PKG/usr/share/doc
   27 }

Generated by cgit