summaryrefslogblamecommitdiff
path: root/user/libgphoto2/APKBUILD
blob: aee8693b14ca7cea980f085dc90aa30e3b766d00 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                  
             
        







                                                    
                                                   
                                                     


                                                                            










                                             



                  











                                                                                
                                                                                                                                                                        
# Maintainer: 
pkgname=libgphoto2
pkgver=2.5.23
pkgrel=1
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"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/gphoto/libgphoto2-$pkgver.tar.bz2"

build() {
	udevscriptdir=/lib/udev ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-drivers=all \
		--disable-static \
		--disable-rpath
	make
}

check() {
	make check
}

package() {
	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="f5f8f33e934989e6f832952c6c7c2c9e37c436652a08191e8ccced293447a090cb596fff80b9b0ad52c99c0ffc08a1207ca7ef2b630dc52f4c6d7f86e4cbc95a  libgphoto2-2.5.23.tar.bz2"