aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-08-25 08:45:14 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-08-25 08:48:52 +0200
commit67ffa41bb78171225059785658bdcea03def9900 (patch)
tree2333d1f5841b2f121148a00a7bf73f5c1c0c1f4a
parentf4fa28a32e0491a2eb9f11aa2fba66aa7158fbbd (diff)
downloadaports-67ffa41bb78171225059785658bdcea03def9900.tar.bz2
aports-67ffa41bb78171225059785658bdcea03def9900.tar.xz
main/libxml2: clean up and improve deps for -dev
- the -dev package does not need python -dev so remove that. - dont build static libc - move a shell script to -dev package fixes #4553
-rw-r--r--main/libxml2/APKBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/main/libxml2/APKBUILD b/main/libxml2/APKBUILD
index 4a0ccb49cc..5a5d08f50a 100644
--- a/main/libxml2/APKBUILD
+++ b/main/libxml2/APKBUILD
@@ -2,14 +2,14 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=libxml2
pkgver=2.9.2
-pkgrel=1
+pkgrel=2
pkgdesc="XML parsing library, version 2"
url="http://www.xmlsoft.org/"
arch="all"
license="MIT"
depends=
-depends_dev="zlib-dev python-dev"
-makedepends="zlib-dev python-dev"
+depends_dev="zlib-dev"
+makedepends="$depends_dev python-dev"
subpackages="$pkgname-doc $pkgname-dev py-$pkgname:py $pkgname-utils"
source="ftp://ftp.xmlsoft.org/${pkgname}/${pkgname}-${pkgver}.tar.gz
libxml2-pthread.patch
@@ -37,6 +37,7 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
+ --disable-static \
|| return 1
make
}
@@ -51,6 +52,11 @@ package() {
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
+dev() {
+ default_dev
+ mv "$pkgdir"/usr/lib/*.sh "$subpkgdir"/usr/lib/
+}
+
py() {
cd "$_builddir"
pkgdesc="$pkgname python bindings"
@@ -65,6 +71,7 @@ utils() {
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
+
md5sums="9e6a9aca9d155737868b3dc5fd82f788 libxml2-2.9.2.tar.gz
cc0da520c5296e87407d24166480da73 libxml2-pthread.patch
e6f432aea642badcb848e5791bcf6df7 CVE-2014-0191.patch"