diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-13 13:50:54 -0300 |
---|---|---|
committer | Shiz <hi@shiz.me> | 2017-05-14 04:30:20 +0200 |
commit | 4df03af864f472877b83f1dfac92c248cb2a7632 (patch) | |
tree | 0c3151383b40b462d2e7bfddef8c851005dd3095 /community/xpdf/APKBUILD | |
parent | 2bbf0ef7bb0bed19f029254baafa7020a84d0c9b (diff) | |
download | aports-4df03af864f472877b83f1dfac92c248cb2a7632.tar.bz2 aports-4df03af864f472877b83f1dfac92c248cb2a7632.tar.xz |
community/xpdf: modernize abuild
Diffstat (limited to 'community/xpdf/APKBUILD')
-rw-r--r-- | community/xpdf/APKBUILD | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/community/xpdf/APKBUILD b/community/xpdf/APKBUILD index bb4ec6f3c0..020c3e9023 100644 --- a/community/xpdf/APKBUILD +++ b/community/xpdf/APKBUILD @@ -8,28 +8,16 @@ url="http://foolabs.com/xpdf" arch="all" license="GPL2/GPL3" depends="ghostscript-fonts" -depends_dev="" makedepends="motif-dev freetype-dev libpng-dev" -install="" subpackages="$pkgname-doc" source="ftp://ftp.foolabs.com/pub/xpdf/$pkgname-$pkgver.tar.gz xpdf-3.04-protection.patch xpdfrc" -_builddir="$srcdir/$pkgname-$pkgver" -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 -} +builddir="$srcdir/$pkgname-$pkgver" build() { - echo "$_builddir" - cd "$_builddir" + cd "$builddir" ./configure \ --with-x \ --with-freetype2-includes=/usr/include/freetype2 \ @@ -39,14 +27,13 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make || return 1 + --localstatedir=/var + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install #delete pdf* utils that conflict with poppler-utils. rm -f "$pkgdir"/usr/bin/pdf* rm -f "$pkgdir"/usr/share/man/man1/pdf* @@ -54,12 +41,6 @@ package() { cp "$srcdir"/xpdfrc "$pkgdir"/etc/xpdfrc } -md5sums="3bc86c69c8ff444db52461270bef3f44 xpdf-3.04.tar.gz -11bd32802d9e600ad028f5b84194178d xpdf-3.04-protection.patch -957ead33031ea7ddffe73e8af5658998 xpdfrc" -sha256sums="11390c74733abcb262aaca4db68710f13ffffd42bfe2a0861a5dfc912b2977e5 xpdf-3.04.tar.gz -5a12a1781eb29f83b3f0e3c1484e6c99537f84e42aa3dda9bb9c4a5befd83217 xpdf-3.04-protection.patch -61177490dcfae9cb65af16486ab6567b81653f51f0279ee06a56516dd9a890d5 xpdfrc" sha512sums="3fb3c380fdbd13d937449ae3f7d7a163815cc85296d30be7b9907687884385d6171bb48ee5d5c13368d6bba87740b678f491bdcf61b38d130809e9afa260f6cf xpdf-3.04.tar.gz 4c6360731ad60ed45e0612b016116a9588f293267ee3e2c1f7cd2f046f045f165334c6e7fceb6b51b3181adb7a74087036a28fcec0e04b23e6374ffc421c1f54 xpdf-3.04-protection.patch 7e8404fa5432bad578c29cf3ccd276bb64cd0316b700e40ce606b6b6261c497125e8689c6e545cab2adb04d69b1ed25d1e0d07155add9837e6bb44d5f18d82d3 xpdfrc" |