summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsekret2015-06-09 19:35:01 +0200
committersekret2015-06-09 19:35:01 +0200
commit55feea5480ababd3ea645edaa5e27711beae26e8 (patch)
tree367125501b9eabbe2637d5eaa3b0c1e339590f7c /PKGBUILD
downloadaur-55feea5480ababd3ea645edaa5e27711beae26e8.tar.gz
initial AUR4 import
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..2ff4ca6466b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d)
+_pkgname=alac
+pkgname=$_pkgname-git
+pkgver=0.r3.35e1d01
+pkgrel=1
+pkgdesc="an audio codec developed by Apple and supported on iPhone, iPad, most iPods, Mac and iTunes"
+arch=('i686' 'x86_64')
+url="https://alac.macosforge.org/"
+license=('custom')
+depends=('gcc-libs')
+makedepends=('git')
+provides=("$_pkgname" "$_pkgname-svn" 'alacconvert' 'libalac')
+conflicts=("$_pkgname" "$_pkgname-svn" 'alacconvert' 'libalac')
+source=("$_pkgname::git+git://git.macosforge.org/alac.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$_pkgname"
+ sed -i 's/LFLAGS) $(OBJS) -o alacconvert/OBJS) -o alacconvert $(LFLAGS)/' convert-utility/makefile
+ sed -i 's/CFLAGS =/CFLAGS := $(CFLAGS)/' {codec,convert-utility}/makefile
+}
+
+build() {
+ cd "$_pkgname"
+ CFLAGS=-Wno-multichar make -C convert-utility
+}
+
+package() {
+ cd "$_pkgname"
+ install -Dm755 convert-utility/alacconvert "$pkgdir/usr/bin/alacconvert"
+ install -Dm644 codec/APPLE_LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: