From ecdefec10d847455761ae972a8fe2d7553a3b223 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sat, 28 Oct 2017 14:03:56 +0200 Subject: main/libxslt: modernize abuild --- main/libxslt/APKBUILD | 22 +++++++++------------- 1 file 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" -- cgit v1.2.3