diff options
author | Chocobo1 | 2017-11-22 00:17:03 +0800 |
---|---|---|
committer | Chocobo1 | 2017-11-22 00:24:36 +0800 |
commit | c82da6044e8599513c7f109c79c3d775a8f9a123 (patch) | |
tree | a7fc9174504dcb828cff47f25e2e0183ec4be3b1 | |
download | aur-c82da6044e8599513c7f109c79c3d775a8f9a123.tar.gz |
newpkg: libopusenc-git 0.1.1.r0.gb37719f-1
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..da0f8259ac27 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = libopusenc-git + pkgdesc = High-level API for encoding .opus files + pkgver = 0.1.1.r0.gb37719f + pkgrel = 1 + url = https://opus-codec.org/ + arch = i686 + arch = x86_64 + license = BSD + makedepends = git + depends = glibc + depends = opus + provides = libopusenc + conflicts = libopusenc + options = staticlibs + source = git+https://git.xiph.org/libopusenc.git + sha256sums = SKIP + +pkgname = libopusenc-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..80f0d8a37b2a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=libopusenc-git +pkgver=0.1.1.r0.gb37719f +pkgrel=1 +pkgdesc="High-level API for encoding .opus files" +arch=('i686' 'x86_64') +url="https://opus-codec.org/" +license=('BSD') +depends=('glibc' 'opus') +makedepends=('git') +provides=('libopusenc') +conflicts=('libopusenc') +options=('staticlibs') +source=("git+https://git.xiph.org/libopusenc.git") +sha256sums=('SKIP') + + +pkgver() { + cd "libopusenc" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "libopusenc" + + ./autogen.sh + ./configure --prefix="/usr" + make +} + +package() { + cd "libopusenc" + + make DESTDIR="$pkgdir" install + + install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/libopusenc/COPYING" + rm "$pkgdir/usr/share/doc/libopusenc/COPYING" +} |