diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-09-30 20:57:31 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-09-30 20:58:32 +0200 |
commit | 69e9cf1d6a3ae7fe9ad252c398b491113d66097b (patch) | |
tree | a3fbcf3efe79a0816f1913320f719315d1efe008 /testing | |
parent | d3de9da065633d4e52826afaa6a535a3c73ab19f (diff) | |
download | aports-69e9cf1d6a3ae7fe9ad252c398b491113d66097b.tar.bz2 aports-69e9cf1d6a3ae7fe9ad252c398b491113d66097b.tar.xz |
testing/libzen: build with cmake and change source to mediaarea.net
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libzen/APKBUILD | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/testing/libzen/APKBUILD b/testing/libzen/APKBUILD index 8ba57c78a9..0c3426f7ea 100644 --- a/testing/libzen/APKBUILD +++ b/testing/libzen/APKBUILD @@ -1,42 +1,33 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Corey Oliver <corey.jon.oliver@gmail.com> pkgname=libzen -_pkgname=ZenLib pkgver=0.4.37 -pkgrel=1 -pkgdesc="shared library for libmediainfo and mediainfo" +pkgrel=2 +pkgdesc="A shared library for libmediainfo and mediainfo" url="https://github.com/MediaArea/ZenLib" arch="all" license="BSD" -makedepends="libtool autoconf automake" +makedepends="cmake" subpackages="$pkgname-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/MediaArea/$_pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver/Project/GNU/Library" - -prepare() { - default_prepare - cd "$builddir" - - ./autogen.sh -} +source="https://mediaarea.net/download/source/$pkgname/$pkgver/${pkgname}_$pkgver.tar.bz2" +builddir="$srcdir/ZenLib" +_cmakedir="$builddir/Project/CMake" build() { - cd "$builddir" + cd "$_cmakedir" - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --enable-shared \ - --disable-static + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=lib \ + -DCMAKE_VERBOSE_MAKEFILE=ON make } package() { - cd "$builddir" + cd "$_cmakedir" make DESTDIR="$pkgdir" install - rm -f "$pkgdir"/usr/lib/*.la } -sha512sums="857091422d6425aeae59bf5a9dfedd72f5c9b4a18f29acf88842d812f2b470fc8b1b03a245af6b7d08d616dd5596a8905cc138daecee23dadea39ae4215f77d4 libzen-0.4.37.tar.gz" +sha512sums="3b5bec79470bec054cfa759e753e3925fbd9f27e508c692c0b100fcf1599696bff462d92c08799646e6ffc74c176e7cc7509ae0754c4710d527494f59d95d12b libzen_0.4.37.tar.bz2" |