diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-10-28 14:03:56 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-10-28 14:05:58 +0200 |
commit | ecdefec10d847455761ae972a8fe2d7553a3b223 (patch) | |
tree | 8715a0c23dd5e06ad05a6f9e67d984df7f3056cf | |
parent | e1be65a1732ef5ae0994866aa243e08475fda35f (diff) | |
download | aports-ecdefec10d847455761ae972a8fe2d7553a3b223.tar.bz2 aports-ecdefec10d847455761ae972a8fe2d7553a3b223.tar.xz |
main/libxslt: modernize abuild
-rw-r--r-- | main/libxslt/APKBUILD | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/main/libxslt/APKBUILD b/main/libxslt/APKBUILD index 2966404e7e..d466cb47c7 100644 --- a/main/libxslt/APKBUILD +++ b/main/libxslt/APKBUILD @@ -7,41 +7,37 @@ pkgdesc="XML stylesheet transformation library" url="http://xmlsoft.org/XSLT/" arch="all" license="custom" -depends= makedepends="libxml2-dev libgcrypt-dev libgpg-error-dev python2-dev" subpackages="$pkgname-dev $pkgname-doc py-$pkgname:py" -source="ftp://xmlsoft.org/$pkgname/$pkgname-$pkgver.tar.gz - " -builddir="$srcdir"/$pkgname-$pkgver +source="ftp://xmlsoft.org/$pkgname/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 1.1.29-r1: # - CVE-2017-5029 -prepare() { - cd "$builddir" - default_prepare || return 1 -} - build() { cd "$builddir" + ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ - || return 1 + --prefix=/usr make } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + + make DESTDIR="$pkgdir" install install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } py() { - pkgdesc="$pkgname python bindings" + pkgdesc="$pkgname python2 bindings" + install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } + sha512sums="d24e37398503b6bc29245a993738df51bf3948c4a8f052eedd7eac0a9fcff2d5b54220f37070c46f763e073c34bdb3153c9f129aa0df60c3d7cf7eadbbf15986 libxslt-1.1.30.tar.gz" |