diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-04 21:41:51 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-04 21:41:51 -0300 |
commit | 27f8321046e2bbcff4f9b5d54904c44b9d663df3 (patch) | |
tree | a29c7c57c522ca3e53586a3637f3caa226d36f2c /libre/psutils/PKGBUILD | |
parent | ad9f6d848f9b0fa975cffa7c919d02c404586ae3 (diff) | |
download | abslibre-27f8321046e2bbcff4f9b5d54904c44b9d663df3.tar.gz abslibre-27f8321046e2bbcff4f9b5d54904c44b9d663df3.tar.bz2 abslibre-27f8321046e2bbcff4f9b5d54904c44b9d663df3.zip |
psutils: remove libre suffix and add complex pkgrel
Diffstat (limited to 'libre/psutils/PKGBUILD')
-rw-r--r-- | libre/psutils/PKGBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libre/psutils/PKGBUILD b/libre/psutils/PKGBUILD new file mode 100644 index 000000000..220680ce9 --- /dev/null +++ b/libre/psutils/PKGBUILD @@ -0,0 +1,57 @@ +# $Id: PKGBUILD 216383 2014-07-03 06:24:56Z fyan $ +# Maintainer (Arch): Ronald van Haren <ronald.archlinux.org> +# Contributor (Arch): eric <eric@archlinux.org> +# Contributor (Arch): Tom Newsom <Jeepster@gmx.co.uk> +# Maintainer: André Silva <emulatorman@parabola.nu> +# Contributor: xihh <hahj87@gmail.com> + +_pkgname=psutils-libre +pkgname=psutils +pkgver=1.17 +pkgrel=5.parabola1 +arch=('i686' 'x86_64' 'mips64el') +pkgdesc="A set of postscript utilities, without nonfree files" +url="http://knackered.org/angus/psutils/" +license=('custom') +depends=('glibc' 'ghostscript') +provides=('psutils-lprng') +replaces=('psutils-lprng' 'psutils-libre') +conflicts=('psutils-lprng' 'psutils-libre') +options=('!makeflags') +mksource=("ftp://ftp.archlinux.org/other/psutils/${pkgname}-${pkgver}.tar.gz" + 'libre.patch') +source=("https://repo.parabolagnulinux.org/other/${_pkgname}/${_pkgname}-${pkgver}.tar.gz" + 'psutils-1.17.diff') +mkmd5sums=('b161522f3bd1507655326afa7db4a0ad' + 'a4beaf371607085e89ef190c1db7aee3') +md5sums=('75c88dc9e33877368d471dfa8652d96d' + '2b49e9e796000b42f42804d4b50a2be1') + +mksource() { + cd "${srcdir}/${pkgname}" + # apply patch to remove nonfree files support from Makefile + patch -Np1 -i "${srcdir}/libre.patch" + # remove nonfree files + rm -v {fixmacps.{man,pl},md{68_0,71_0}.ps} +} + +build() { + cd "${srcdir}/${pkgname}" + patch -Np1 -i "${srcdir}/psutils-1.17.diff" + 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 "${srcdir}/${pkgname}" + 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}/" +} |