summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Alvarez2016-08-27 11:14:52 +0200
committerGustavo Alvarez2016-08-27 11:14:52 +0200
commitf9ccbd6012ea4c2fb6a18306fce83e0f4c2fb4d8 (patch)
tree801fed5865420dad541db072a4c2031733059faf
parentf2db33e5028836d0c710e7a971c1dc1882b5c365 (diff)
downloadaur-f9ccbd6012ea4c2fb6a18306fce83e0f4c2fb4d8.tar.gz
Adopted and bumped
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD41
2 files changed, 23 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3413771cfd0..a8c00f89e83 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Thu Aug 25 18:25:00 UTC 2016
+# Sat Aug 27 09:14:38 UTC 2016
pkgbase = openh264-git
pkgdesc = Open Source H.264 Codec
- pkgver = 1.1.r2131.g30328b8
+ pkgver = 1.6.r4354.30328b8
pkgrel = 1
url = http://www.openh264.org
arch = i686
@@ -14,8 +14,8 @@ pkgbase = openh264-git
makedepends = nasm
provides = openh264
conflicts = openh264
- source = openh264::git+https://github.com/cisco/openh264.git
- md5sums = SKIP
+ source = git+https://github.com/cisco/openh264.git
+ sha1sums = SKIP
pkgname = openh264-git
diff --git a/PKGBUILD b/PKGBUILD
index 9643568ca8a..08fa08f3b41 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,39 +1,36 @@
-# Maintainer: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d)
-_pkgname=openh264
-pkgname=$_pkgname-git
-pkgver=1.1.r2131.g30328b8
+# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
+# Contributor: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d)
+
+pkgname=openh264-git
+pkgver=1.6.r4354.30328b8
pkgrel=1
pkgdesc="Open Source H.264 Codec"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
-url="http://www.openh264.org"
+url='http://www.openh264.org'
license=('BSD')
-makedepends=('git' 'nasm')
-provides=("$_pkgname")
-conflicts=("$_pkgname")
-source=("$_pkgname::git+https://github.com/cisco/openh264.git")
-md5sums=('SKIP')
+makedepends=('git'
+ 'nasm'
+ )
+provides=('openh264')
+conflicts=('openh264')
+source=('git+https://github.com/cisco/openh264.git')
+sha1sums=('SKIP')
pkgver() {
- cd "$_pkgname"
- git describe --long | sed -r 's/v//;s/([^-]*-g)/r\1/;s/-/./g'
-}
-
-prepare() {
- cd "$_pkgname"
- sed -i 's/PREFIX=\/usr\/local/PREFIX=\/usr/g' Makefile
+ cd openh264
+ _ver="$(cat Makefile | grep -m1 VERSION | grep -o "[[:digit:]]*" | paste -sd'.')"
+ echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
- cd "$_pkgname"
- make
+ make -C openh264 PREFIX="/usr"
}
package() {
- cd "$_pkgname"
- make DESTDIR="$pkgdir/" install
+ cd openh264
+ make DESTDIR="${pkgdir}" PREFIX="/usr" install
install -Dm755 h264dec "$pkgdir/usr/bin/h264dec"
install -Dm755 h264enc "$pkgdir/usr/bin/h264enc"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-# vim:set ts=2 sw=2 et: