aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-03 15:06:36 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:53:39 +0000
commitdb8262bcc7ae6f684da54b9b0d1346d3fff084ac (patch)
tree3613e64b7568587bd850d5364742332e57315699
parent1efeacc68119a16d37f82c65c9713a9cfa2161a3 (diff)
downloadaports-db8262bcc7ae6f684da54b9b0d1346d3fff084ac.tar.gz
aports-db8262bcc7ae6f684da54b9b0d1346d3fff084ac.tar.bz2
aports-db8262bcc7ae6f684da54b9b0d1346d3fff084ac.tar.xz
main/libxv: modernise, fix deps, add test suite
-rw-r--r--main/libxv/APKBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/main/libxv/APKBUILD b/main/libxv/APKBUILD
index c76299f0e4..b740e17562 100644
--- a/main/libxv/APKBUILD
+++ b/main/libxv/APKBUILD
@@ -1,14 +1,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxv
pkgver=1.0.11
-pkgrel=0
+pkgrel=1
pkgdesc="X11 Video extension library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
depends=""
-depends_dev="libxext-dev"
-makedepends="$depends_dev libx11-dev videoproto xproto"
+makedepends="libx11-dev libxext-dev util-macros videoproto xproto"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.x.org/releases/individual/lib/libXv-$pkgver.tar.bz2
"
@@ -22,14 +21,18 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}