summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12018-01-14 13:43:54 +0800
committerChocobo12018-01-14 15:21:04 +0800
commita4e70eb70b715f345e6dbdb74cdf83c215737245 (patch)
treefb9e90c77ea12bc62862a6e47928db1710d4c37e /PKGBUILD
downloadaur-a4e70eb70b715f345e6dbdb74cdf83c215737245.tar.gz
newpkg: aom-git 0.1.0.r7650.gefcf1e9128-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..bf6f7ce2f9ce
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=aom-git
+pkgver=0.1.0.r7650.gefcf1e9128
+pkgrel=1
+pkgdesc="An open, royalty-free video coding format designed for video transmissions over the Internet"
+arch=('i686' 'x86_64')
+url="http://aomedia.org/"
+license=('BSD' 'custom:PATENTS')
+depends=('glibc')
+makedepends=('git' 'cmake' 'perl' 'yasm')
+provides=('aom')
+conflicts=('aom')
+source=("git+https://aomedia.googlesource.com/aom")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "aom"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "aom"
+
+ mkdir -p "_build" && cd "_build"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1 \
+ ../
+ make
+}
+
+check() {
+ cd "aom/_build"
+
+ #make runtests
+}
+
+package() {
+ cd "aom/_build"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir/aom/LICENSE" "$pkgdir/usr/share/licenses/aom/LICENSE"
+ install -Dm644 "$srcdir/aom/PATENTS" "$pkgdir/usr/share/licenses/aom/PATENTS"
+}