diff options
author | Daniel Bermond | 2020-08-10 21:44:24 +0000 |
---|---|---|
committer | Daniel Bermond | 2020-08-10 21:45:09 +0000 |
commit | afa3abb14112fe17e215fc651f89c1d08a6a91a1 (patch) | |
tree | 50413bab79ab89841234a0e793757b8a6ce1bcb5 /PKGBUILD | |
download | aur-afa3abb14112fe17e215fc651f89c1d08a6a91a1.tar.gz |
Initial commit of libgav1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..786b8f8bdf83 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Daniel Bermond <dbermond@archlinux.org> + +_abseil_ver=20200225.2 + +pkgname=libgav1 +pkgver=0.16.0 +pkgrel=1 +pkgdesc='A main profile (0) and high profile (1) compliant AV1 decoder' +arch=('x86_64') +url='https://chromium.googlesource.com/codecs/libgav1/' +license=('Apache') +makedepends=('git' 'cmake') +source=("git+https://chromium.googlesource.com/codecs/libgav1#tag=v${pkgver}" + "git+https://github.com/abseil/abseil-cpp.git#tag=${_abseil_ver}") +sha256sums=('SKIP' + 'SKIP') + +prepare() { + mkdir -p libgav1/third_party + ln -sf ../../abseil-cpp libgav1/third_party/abseil-cpp +} + +build() { + cmake -B build -S libgav1 \ + -DCMAKE_BUILD_TYPE:STRING='None' \ + -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ + -DLIBGAV1_ENABLE_SSE4_1:BOOL='OFF' \ + -Wno-dev + make -C build +} + +package() { + make -C build DESTDIR="$pkgdir" install +} |