aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgphoto2/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-11 16:18:28 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-11 16:18:28 +0000
commitd1061ed23ea26e2098b90cf76ab2a206c37e45c8 (patch)
treefda37aa03cb20b6eed2c6e1e8f4866c7188cc2ed /main/libgphoto2/APKBUILD
parent3c063e4271b00f4633120cc1403e543cf0654385 (diff)
downloadaports-d1061ed23ea26e2098b90cf76ab2a206c37e45c8.tar.bz2
aports-d1061ed23ea26e2098b90cf76ab2a206c37e45c8.tar.xz
main/libgphoto2: fix build
Diffstat (limited to 'main/libgphoto2/APKBUILD')
-rw-r--r--main/libgphoto2/APKBUILD22
1 files changed, 11 insertions, 11 deletions
diff --git a/main/libgphoto2/APKBUILD b/main/libgphoto2/APKBUILD
index 3c1b69e4d3..c4c220cc92 100644
--- a/main/libgphoto2/APKBUILD
+++ b/main/libgphoto2/APKBUILD
@@ -12,17 +12,14 @@ makedepends="$depends_dev libjpeg-turbo-dev libtool"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-dev $pkgname-doc"
replaces="libgphoto2-dev"
-source="http://downloads.sourceforge.net/gphoto/libgphoto2-$pkgver.tar.bz2"
+source="http://downloads.sourceforge.net/gphoto/libgphoto2-$pkgver.tar.bz2
+ libjpeg_turbo_1.5.0_fix.patch"
options="libtool"
-_builddir="$srcdir"/$pkgname-$pkgver
-
-prepare() {
- cd "$_builddir"
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
udevscriptdir=/lib/udev ./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,7 +32,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/libgphoto2/*/*.a \
"$pkgdir"/usr/lib/*.a
@@ -46,6 +43,9 @@ package() {
"$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
}
-md5sums="f1e53e684a3ea51cc7958d7e4eee7f37 libgphoto2-2.5.10.tar.bz2"
-sha256sums="8d8668d432ba595c7466442aec2cf553bdf8782ec171291dbc65717c633a4ef2 libgphoto2-2.5.10.tar.bz2"
-sha512sums="13f593e09e8428bf72fc783b4ddfd5fc418fcf42ebe17d05b44255458dbac956293fb189c48b609fba5586f39771d148a3541fa484ac51fd68c921f2f05ca18a libgphoto2-2.5.10.tar.bz2"
+md5sums="f1e53e684a3ea51cc7958d7e4eee7f37 libgphoto2-2.5.10.tar.bz2
+af8318eb34e73b30ccdb4f7357ce7a63 libjpeg_turbo_1.5.0_fix.patch"
+sha256sums="8d8668d432ba595c7466442aec2cf553bdf8782ec171291dbc65717c633a4ef2 libgphoto2-2.5.10.tar.bz2
+36723efa91099b14d3eff83acc90071d3453317dc1dd6fa114bfb76826f49184 libjpeg_turbo_1.5.0_fix.patch"
+sha512sums="13f593e09e8428bf72fc783b4ddfd5fc418fcf42ebe17d05b44255458dbac956293fb189c48b609fba5586f39771d148a3541fa484ac51fd68c921f2f05ca18a libgphoto2-2.5.10.tar.bz2
+b775bd47b5eef4171f4d030d9f55c0e9e1ac4c81678195f04d0af7fc1fb4780ed271ac8a22b73384aacfa6e2f81b795c4a0d37bceb993648bd34877404af6554 libjpeg_turbo_1.5.0_fix.patch"