summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsekret2015-06-09 19:35:01 +0200
committersekret2015-06-09 19:35:01 +0200
commit55feea5480ababd3ea645edaa5e27711beae26e8 (patch)
tree367125501b9eabbe2637d5eaa3b0c1e339590f7c
downloadaur-55feea5480ababd3ea645edaa5e27711beae26e8.tar.gz
initial AUR4 import
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD39
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5a46f1ec057
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = alac-git
+ pkgdesc = an audio codec developed by Apple and supported on iPhone, iPad, most iPods, Mac and iTunes
+ pkgver = 0.r3.35e1d01
+ pkgrel = 1
+ url = https://alac.macosforge.org/
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = git
+ depends = gcc-libs
+ provides = alac
+ provides = alac-svn
+ provides = alacconvert
+ provides = libalac
+ conflicts = alac
+ conflicts = alac-svn
+ conflicts = alacconvert
+ conflicts = libalac
+ source = alac::git+git://git.macosforge.org/alac.git
+ md5sums = SKIP
+
+pkgname = alac-git
+
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: