aboutsummaryrefslogtreecommitdiffstats
path: root/main/libraw1394/APKBUILD
blob: 4a7f8a8a4902bd8cbad2f68d58bb2397488e04c9 (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
56
57
58
59
60
61
62
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=libraw1394
pkgver=2.1.0
pkgrel=1
pkgdesc="Library to provide access to Linux 1394 subsystem"
url="http://sourceforge.net/projects/libraw1394"
arch="all"
license="LGPL"
depends=
depends_dev=
makedepends=""
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="ftp://ftp.kernel.org/pub/linux/libs/ieee1394/$pkgname-$pkgver.tar.bz2
	fix-types.patch
	"


_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
	rm "$pkgdir"/usr/lib/*.la
}

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

md5sums="2f8d06a826b658bd0f3f0697e930dd52  libraw1394-2.1.0.tar.bz2
b788709cda898c005a4edb81aeadd8d9  fix-types.patch"
sha256sums="81798ea6ce1c7f4eaf9d8970ee635f9ade7fd05735a82b291947814481af45df  libraw1394-2.1.0.tar.bz2
39369c65fbed7fccc2e6d8e645f258f101c414107d67238f10996e6c2009f20d  fix-types.patch"
sha512sums="01e38ae140fc672e82e2702f59530484dc08b3290c42089de48c43844f80584bcfac6d1cb86d47b22ac79b218efedfbb51a4bd2c229a461ec413c1161ea09330  libraw1394-2.1.0.tar.bz2
08477876ff0d627a1d1038da442728b1d6cfc281fa8f27448d9a73119476d51998954c804d83d8825c7b75ccd71f16ddeacdb453073afbc263bb4d56caa4e198  fix-types.patch"