diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-08-09 13:42:41 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-08-25 23:44:51 +0000 |
commit | 7730cc0ded5f3d4cf067ed5e5ddffc72e1a4ae1c (patch) | |
tree | b1feed09e6bbe98499f943af3fd54d3375b35200 | |
parent | 92e7d4467fe289570f09c710e53953f59e5ad97d (diff) | |
download | aports-7730cc0ded5f3d4cf067ed5e5ddffc72e1a4ae1c.tar.bz2 aports-7730cc0ded5f3d4cf067ed5e5ddffc72e1a4ae1c.tar.xz |
main/wayland: upgrade to 1.14.0, split libraries
-rw-r--r-- | main/wayland/APKBUILD | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/main/wayland/APKBUILD b/main/wayland/APKBUILD index 0aff823156..755bd8e935 100644 --- a/main/wayland/APKBUILD +++ b/main/wayland/APKBUILD @@ -2,16 +2,17 @@ # Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> # Maintainer: Valery Kartel <valery.kartel@gmail.com> pkgname=wayland -pkgver=1.13.0 +pkgver=1.14.0 pkgrel=0 pkgdesc="A computer display server protocol" url="http://wayland.freedesktop.org" arch=all license="MIT" -depends="" +depends="$pkgname-libs-client $pkgname-libs-cursor $pkgname-libs-server" depends_dev="libffi-dev expat-dev" makedepends="$depends_dev doxygen xmlto graphviz grep libxml2-dev" -subpackages="$pkgname-doc $pkgname-dev" +subpackages="$pkgname-doc $pkgname-dev $pkgname-libs-client:_libs + $pkgname-libs-cursor:_libs $pkgname-libs-server:_libs" source="http://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz" builddir="$srcdir/$pkgname-$pkgver" @@ -26,21 +27,32 @@ build() { --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ - --disable-static \ - || return 1 - make || return 1 + --disable-static + make +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install } dev() { - mkdir -p "$subpkgdir"/usr || return 1 + mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$pkgdir"/usr/share \ - "$subpkgdir"/usr || return 1 + "$subpkgdir"/usr default_dev } -sha512sums="163bae2c2c2e79e03dda9a57b1e3a1060eff9e0b053b70ad00a6949a1d40f4c40d0244340c2603109fcbfe919533c2ce196338b27587fd3bda996e615d51e543 wayland-1.13.0.tar.xz" +_libs() { + local name=${subpkgname#$pkgname-libs-} + pkgdesc="$pkgdesc ($name library)" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/*-$name.so.* "$subpkgdir"/usr/lib +} + +sha512sums="bd38b2b8963d4d98d42c270e5d7dbff6323789a173b19b67a18258424fd8adee5021b282c9d7f6dad0bd25aa0160e76aecd8ed803d4eb25d911ef0a81cd713a5 wayland-1.14.0.tar.xz" |