diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-11-30 13:47:37 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-11-30 13:47:37 +0000 |
commit | 017d4f32654b2a505d8a37e12c71a0ddf02dc96e (patch) | |
tree | b4430ce1c1cbe25e404b06a33a6c8f7648e19434 /testing/psutils | |
parent | 5cfc330054d44412ab52040143884f6d6744ff6a (diff) | |
download | aports-017d4f32654b2a505d8a37e12c71a0ddf02dc96e.tar.bz2 aports-017d4f32654b2a505d8a37e12c71a0ddf02dc96e.tar.xz |
testing/psutils: new aport
Diffstat (limited to 'testing/psutils')
-rw-r--r-- | testing/psutils/APKBUILD | 54 | ||||
-rw-r--r-- | testing/psutils/psutils-1.17.patch | 33 |
2 files changed, 87 insertions, 0 deletions
diff --git a/testing/psutils/APKBUILD b/testing/psutils/APKBUILD new file mode 100644 index 0000000000..eec27904c2 --- /dev/null +++ b/testing/psutils/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=psutils +pkgver=1.17 +pkgrel=0 +pkgdesc="A set of postscript utilities" +url="http://knackered.org/angus/psutils" +arch="all" +license="custom" +depends="perl" +depends_dev="perl-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="https://sources.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz + psutils-1.17.patch" + +_builddir="$srcdir"/$pkgname +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make -f Makefile.unix BINDIR=/usr/bin \ + INCLUDEDIR=/usr/include/psutils PERL=/usr/bin/perl \ + MANDIR=/usr/share/man/man1 \ + CFLAGS="$CFLAGS -DPAPER=\\\"letter\\\" -DUNIX -Wall" \ + CCFLAGS="$LDFLAGS" +} + +package() { + cd "$_builddir" + install -d -m755 "${pkgdir}/usr/include" + install -d -m755 "${pkgdir}/usr/share/man" + make -f Makefile.unix BINDIR="${pkgdir}/usr/bin" \ + INCLUDEDIR="${pkgdir}/usr/include/psutils" PERL=/usr/bin/perl \ + MANDIR="${pkgdir}/usr/share/man/man1" install + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" +} + +md5sums="b161522f3bd1507655326afa7db4a0ad psutils-1.17.tar.gz +2b49e9e796000b42f42804d4b50a2be1 psutils-1.17.patch" +sha256sums="3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4 psutils-1.17.tar.gz +af2d2c72ee333491a188f0b9675ce26fdd45fbed793ced1e2bea2e9e079d2946 psutils-1.17.patch" +sha512sums="91feff88c885173ab1c4ba6b5ffd0d9e90bfa6105479b074065584fc2a87e78fbe71e4bc90d2e7079d86b467caf092b6744b0ea4234880ba78cad8dd7820de77 psutils-1.17.tar.gz +795f45c6315e3c02485d1d5243c1541992b669539257249a185f57136e623c489a9f3635d3f171f698428aeb9710332cf36bb0aa0ade8ea351514044630f12f0 psutils-1.17.patch" diff --git a/testing/psutils/psutils-1.17.patch b/testing/psutils/psutils-1.17.patch new file mode 100644 index 0000000000..4af32bd7f9 --- /dev/null +++ b/testing/psutils/psutils-1.17.patch @@ -0,0 +1,33 @@ +diff -u -r --new-file psutils.orig/Makefile.unix psutils/Makefile.unix +--- psutils.orig/Makefile.unix Tue Mar 11 14:52:59 1997 ++++ psutils/Makefile.unix Thu Jan 18 20:53:36 2001 +@@ -19,16 +19,16 @@ + # psnup puts multiple logical pages on one physical page + # psresize scales and moves pages to fit on different paper sizes + +-PAPER=a4 ++PAPER=letter + + # Makefile for PSUtils under Unix + + OS = UNIX + +-BINDIR = /usr/local/bin ++BINDIR = /usr/bin + SCRIPTDIR = $(BINDIR) +-INCLUDEDIR = /usr/local/share/psutils +-PERL = /usr/local/bin/perl ++INCLUDEDIR = /usr/share/psutils ++PERL = /usr/bin/perl + + BINMODE = 0755 + MANMODE = 0644 +@@ -36,7 +36,7 @@ + INSTALL = install -c -m $(BINMODE) + INSTALLMAN = install -c -m $(MANMODE) + MANEXT = 1 +-MANDIR = /usr/local/share/man/man$(MANEXT) ++MANDIR = /usr/man/man$(MANEXT) + + CC = gcc + CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX -O -Wall |