summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12017-07-27 06:30:31 +0800
committerChocobo12017-07-27 06:55:45 +0800
commit753280db304307557716eb5e3e79f8af77cabd15 (patch)
tree31aa05f5959f06cbb5f9e19f3ef25894c613c44d /PKGBUILD
downloadaur-faac-git.tar.gz
newpkg: faac-git 1.29.3.r3.gcc91e09-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8e149d71bf7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=faac-git
+pkgver=1.29.3.r3.gcc91e09
+pkgrel=1
+pkgdesc="An MPEG-4 and MPEG-2 AAC encoder"
+arch=('i686' 'x86_64')
+url="http://faac.sourceforge.net/"
+license=('GPL' 'BSD' 'Custom')
+depends=('glibc')
+makedepends=('git')
+provides=('faac')
+conflicts=('faac')
+source=("git+https://git.code.sf.net/p/faac/faac")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "faac"
+
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/[-_]/./g'
+}
+
+build() {
+ cd "faac"
+
+ ./bootstrap
+ ./configure --prefix="/usr"
+ make
+}
+
+package() {
+ cd "faac"
+
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "README" "$pkgdir/usr/share/licenses/faac/README"
+ install -Dm644 "libfaac/kiss_fft/COPYING" "$pkgdir/usr/share/licenses/faac/COPYING"
+}