diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-27 07:30:47 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-27 07:30:47 +0000 |
commit | 9ce4bde295dbcbd026a3d0c0e4ae779cb026680d (patch) | |
tree | 07d74e1038d28ac0de081d1e3d478e4b5a4bf17e /main/libxslt | |
parent | c0352ce72cfb89e8215e6a1caee48d421952327c (diff) | |
download | aports-9ce4bde295dbcbd026a3d0c0e4ae779cb026680d.tar.bz2 aports-9ce4bde295dbcbd026a3d0c0e4ae779cb026680d.tar.xz |
main/libxslt: modernize APKBUILD
Diffstat (limited to 'main/libxslt')
-rw-r--r-- | main/libxslt/APKBUILD | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/main/libxslt/APKBUILD b/main/libxslt/APKBUILD index 06802a0f92..84e3fefcad 100644 --- a/main/libxslt/APKBUILD +++ b/main/libxslt/APKBUILD @@ -2,7 +2,7 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> pkgname=libxslt pkgver=1.1.29 -pkgrel=2 +pkgrel=3 pkgdesc="XML stylesheet transformation library" url="http://xmlsoft.org/XSLT/" arch="all" @@ -13,24 +13,19 @@ subpackages="$pkgname-dev $pkgname-doc py-$pkgname:py" source="ftp://xmlsoft.org/$pkgname/$pkgname-$pkgver.tar.gz CVE-2017-5029.patch " - -_builddir="$srcdir"/$pkgname-$pkgver +builddir="$srcdir"/$pkgname-$pkgver # secfixes: # 1.1.29-r1: # - CVE-2017-5029 prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + cd "$builddir" + default_prepare || return 1 } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -40,9 +35,8 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 - install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } |