aboutsummaryrefslogtreecommitdiffstats
path: root/main/libraw1394/APKBUILD
blob: a6c833bd0f4e5ea87db792820ccd4f3f5f73dfe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=libraw1394
pkgver=2.1.2
pkgrel=0
pkgdesc="Library to provide access to Linux 1394 subsystem"
url="http://sourceforge.net/projects/libraw1394"
arch="all"
license="LGPL"
depends=
depends_dev=
makedepends="linux-headers"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="ftp://ftp.kernel.org/pub/linux/libs/ieee1394/$pkgname-$pkgver.tar.xz"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	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
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

tools() {
	pkgdesc="Tools for libraw1394"
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

md5sums="118060584c04f1aa5e29c4d22c1c235a  libraw1394-2.1.2.tar.xz"
sha256sums="03ccc69761d22c7deb1127fc301010dd13e70e44bb7134b8ff0d07590259a55e  libraw1394-2.1.2.tar.xz"
sha512sums="1ef38961b747c4ebb18d823a4c38d5bf019f8bd0ac55547838d153b1899b91ae0ff56f5b6732e309d6975b55725d1ce989917ffcf605cf64f7d33624f54f0567  libraw1394-2.1.2.tar.xz"