blob: 406db96ce8a60aae43493fd81366f1d13360ce73 (
plain) (
blame)
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
|
# Maintainer:
pkgname=libgphoto2
pkgver=2.5.19
pkgrel=0
pkgdesc="Digital camera library"
url="http://www.gphoto.org"
arch="all"
options="libtool"
license="LGPL-2.1+"
depends=""
depends_dev="libexif-dev libusb-dev"
makedepends="$depends_dev libjpeg-turbo-dev libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
install="$pkgname.pre-install $pkgname.pre-upgrade"
replaces="libgphoto2-dev"
source="https://downloads.sourceforge.net/gphoto/libgphoto2-$pkgver.tar.bz2"
build() {
cd "$builddir"
udevscriptdir=/lib/udev ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--with-drivers=all \
--disable-static \
--disable-rpath
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/lib/libgphoto2/*/*.a \
"$pkgdir"/usr/lib/*.a
install -m755 -d "$pkgdir/lib/udev/rules.d"
LD_LIBRARY_PATH="$pkgdir/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
CAMLIBS="$pkgdir/usr/lib/libgphoto2/$pkgver" \
"$pkgdir/usr/lib/libgphoto2/print-camera-list" udev-rules \
version 136 group camera mode 0660 > \
"$pkgdir/lib/udev/rules.d/54-gphoto.rules"
}
sha512sums="0c26613b5e6041955198760f40cf21c302eaf8d3776642cc23e527da576cae01c7dd6eccd091b4c3dd7d592fa5114378858f42fc4ec0cb8bb82791feb4c97e2c libgphoto2-2.5.19.tar.bz2"
|