blob: b7ba6e68c37f190f1aff83145c59777c9d49f2e0 (
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
|
#!/bin/sh
NAME="libgphoto2"
DESC="The core library of gphoto2, designed to allow access to digital camera by external programs"
MAKEDEPS=" libexif libusb libjpeg-turbo libtool"
PKG_VER=2.5.30
SOURCE="https://downloads.sourceforge.net/gphoto/libgphoto2-$PKG_VER.tar.bz2"
build() {
udevscriptdir=/lib/udev ./configure \
--prefix=/usr \
--with-drivers=all \
--disable-static \
--disable-rpath
make
}
check() {
make check
}
package() {
make DESTDIR="$PKG_DEST" install
rm -f "$PKG_DEST"/usr/lib/libgphoto2/*/*.a \
"$PKG_DEST"/usr/lib/*.a
install -m755 -d "$PKG_DEST/lib/udev/rules.d"
LD_LIBRARY_PATH="$PKG_DEST/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
CAMLIBS="$PKG_DEST/usr/lib/libgphoto2/$PKG_VER" \
"$PKG_DEST/usr/lib/libgphoto2/print-camera-list" udev-rules version 136 group camera mode 0660 > "$PKG_DEST/lib/udev/rules.d/54-gphoto.rules"
}
|