diff options
Diffstat (limited to 'user/faad2/APKBUILD')
-rw-r--r-- | user/faad2/APKBUILD | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/user/faad2/APKBUILD b/user/faad2/APKBUILD index 7f9d9a57a..14b2ea7cc 100644 --- a/user/faad2/APKBUILD +++ b/user/faad2/APKBUILD @@ -1,7 +1,6 @@ -# Maintainer: +# Maintainer: pkgname=faad2 -pkgver=2.10.0 -_pkgver="$(printf '%s' "$pkgver" | tr . _)" +pkgver=2.10.1_git20230904 pkgrel=0 pkgdesc="ISO AAC audio decoder" url="https://www.audiocoding.com/" @@ -9,10 +8,10 @@ arch="all" options="!check" # No test suite. license="GPL-2.0+" depends="" -makedepends="autoconf automake libtool" +makedepends="cmake" subpackages="$pkgname-dev $pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/knik0/faad2/archive/$_pkgver.tar.gz" -builddir="$srcdir/$pkgname-$_pkgver" +#source="$pkgname-$pkgver.tar.gz::https://github.com/knik0/faad2/archive/$pkgver.tar.gz" +source="https://distfiles.adelielinux.org/source/$pkgname-$pkgver.tar.gz" # secfixes: # 2.8.8-r1: @@ -35,24 +34,27 @@ builddir="$srcdir/$pkgname-$_pkgver" # - CVE-2018-20361 # - CVE-2018-20362 -prepare() { - default_prepare - ./bootstrap -} - build() { - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --localstatedir=/var - make + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -Bbuild + make -C build } package() { - make DESTDIR="$pkgdir" install + make DESTDIR="$pkgdir" -C build install +} + +doc() { + default_doc + mkdir -p "$subpkgdir"/usr/share/doc + cp -r "$builddir"/docs \ + "$subpkgdir"/usr/share/doc/$pkgname } -sha512sums="92c8b5e79f85b7a7caac9e7954959c26d74ef148a658dcb37e2c1b303fc2fcc5a0d12f21e7bd476870498109bdd03916a56c13f578186a69d6eceb103222e771 faad2-2.10.0.tar.gz" +sha512sums="5ec65a70ebbb5dbb5e0bffa47499f8bb9436c28ce9a8947e9cede92bbb2441117bac01216989888956e245589c9db572dad17cc47d47ae908709e4e57a7f84b9 faad2-2.10.1_git20230904.tar.gz" |