aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgphoto2/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-03 03:34:23 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-05 15:45:26 +0000
commitf91052a8d08655fff8d437bc5bb801593cf781cf (patch)
tree242c0ebeead542ce86d42c16f253f1d9834fb800 /main/libgphoto2/APKBUILD
parent4b307648ac5124d1298daff8ca1f12434d041228 (diff)
downloadaports-f91052a8d08655fff8d437bc5bb801593cf781cf.tar.bz2
aports-f91052a8d08655fff8d437bc5bb801593cf781cf.tar.xz
main/libgphoto2: upgrade to 2.5.23
Diffstat (limited to 'main/libgphoto2/APKBUILD')
-rw-r--r--main/libgphoto2/APKBUILD25
1 files changed, 12 insertions, 13 deletions
diff --git a/main/libgphoto2/APKBUILD b/main/libgphoto2/APKBUILD
index 179ed0fae7..81d237ef9b 100644
--- a/main/libgphoto2/APKBUILD
+++ b/main/libgphoto2/APKBUILD
@@ -1,12 +1,11 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgphoto2
-pkgver=2.5.16
+pkgver=2.5.23
pkgrel=0
pkgdesc="The core library of gphoto2, designed to allow access to digital camera by external programs."
url="http://www.gphoto.org"
arch="all"
-license="LGPL"
-depends=""
+license="LGPL-2.1-or-later"
depends_dev="libexif-dev libusb-dev"
makedepends="$depends_dev libjpeg-turbo-dev libtool"
install="$pkgname.pre-install $pkgname.pre-upgrade"
@@ -15,31 +14,31 @@ replaces="libgphoto2-dev"
source="https://downloads.sourceforge.net/gphoto/libgphoto2-$pkgver.tar.bz2"
options="libtool"
-builddir="$srcdir"/$pkgname-$pkgver
-
build() {
- cd "$builddir"
udevscriptdir=/lib/udev ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--with-drivers=all \
--disable-static \
- --disable-rpath \
- || return 1
- make || return 1
+ --disable-rpath
+ make
}
-package() {
+check() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ 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" || return 1
+ "$pkgdir/usr/lib/libgphoto2/print-camera-list" udev-rules version 136 group camera mode 0660 > "$pkgdir/lib/udev/rules.d/54-gphoto.rules"
}
-sha512sums="7863192c2959ffc8d771eca294adc54090192e3207cf8d3a9bf143e50034c3f1248e7fe41cad75f758ab2ad09c9258d50967b921adf3223d7c74370faa110a9e libgphoto2-2.5.16.tar.bz2"
+sha512sums="f5f8f33e934989e6f832952c6c7c2c9e37c436652a08191e8ccced293447a090cb596fff80b9b0ad52c99c0ffc08a1207ca7ef2b630dc52f4c6d7f86e4cbc95a libgphoto2-2.5.23.tar.bz2"