aboutsummaryrefslogtreecommitdiffstats
path: root/main/libavc1394
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 20:35:57 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-16 17:15:31 +0000
commita98111478cca368195be313b1713d3c03c4aed84 (patch)
treed0fd3bee7307e65a3ea7b74f1fe41a2033885507 /main/libavc1394
parent1a6c5b4593267c10731930e1e4d6ee5e792ed804 (diff)
downloadaports-a98111478cca368195be313b1713d3c03c4aed84.tar.bz2
aports-a98111478cca368195be313b1713d3c03c4aed84.tar.xz
main/libavc1394: modernise, add check
Diffstat (limited to 'main/libavc1394')
-rw-r--r--main/libavc1394/APKBUILD33
1 files changed, 15 insertions, 18 deletions
diff --git a/main/libavc1394/APKBUILD b/main/libavc1394/APKBUILD
index 4b9697d774..fb4c1d4fcd 100644
--- a/main/libavc1394/APKBUILD
+++ b/main/libavc1394/APKBUILD
@@ -2,14 +2,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libavc1394
pkgver=0.5.4
-pkgrel=1
+pkgrel=2
pkgdesc="Audio/Video Control library for IEEE-1394 devices"
url="https://sourceforge.net/projects/libavc1394/"
arch="all"
license="GPL-2.0-or-later LGPL-2.0-or-later"
depends=
-depends_dev="libraw1394-dev"
-makedepends="$depends_dev libtool automake autoconf"
+makedepends="libraw1394-dev libtool automake autoconf"
[ "$ALPINE_LIBC" != "eglibc" ] && makedepends="$makedepends argp-standalone"
install=""
subpackages="$pkgname-dev $pkgname-doc"
@@ -17,21 +16,15 @@ source="http://downloads.sourceforge.net/libavc1394/libavc1394-$pkgver.tar.gz
automake.patch
argp.patch"
-_builddir="$srcdir"/libavc1394-$pkgver
prepare() {
- local i
- cd "$_builddir"
- update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ cd "$builddir"
+ update_config_sub
+ default_prepare
libtoolize && aclocal && autoconf && automake --add-missing
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -39,14 +32,18 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
sha512sums="ef07631cd2de9b79dec9d81247d705be318101e8f8a1fe007b946ffab3dfe7b97f392144614d867ef6b2315b6c0e82d53e915f07855d4e21401645293e18842a libavc1394-0.5.4.tar.gz