summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD38
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1d3bcb151e8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = libilbc-git
+ pkgdesc = Freeswitch fork of iLBC codec
+ pkgver = 0.0.1.18.829b08c
+ pkgrel = 1
+ url = http://www.ilbcfreeware.org/
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = awk
+ makedepends = audiofile
+ makedepends = git
+ depends = glibc
+ provides = ilbc
+ conflicts = ilbc
+ options = strip
+ source = git+https://freeswitch.org/stash/scm/sd/libilbc.git
+ md5sums = SKIP
+
+pkgname = libilbc-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a3270db4ab6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Bill Durr <billyburly@gmail.com>
+
+_pkgname=libilbc
+pkgname=libilbc-git
+pkgver=0.0.1.18.829b08c
+pkgrel=1
+arch=(i686 x86_64)
+pkgdesc="Freeswitch fork of iLBC codec"
+url="http://www.ilbcfreeware.org/"
+license=('custom')
+depends=('glibc')
+makedepends=('awk' 'audiofile' 'git')
+options=(strip)
+provides=('ilbc')
+conflicts=('ilbc')
+
+source=('git+https://freeswitch.org/stash/scm/sd/libilbc.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd ${srcdir}/${_pkgname}
+ # git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ printf "%s.%s.%s" "$(cat README | head -n 1 | cut -d ' ' -f2)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd ${srcdir}/${_pkgname}
+ ./bootstrap.sh
+ ./configure --prefix=/usr --disable-doc --disable-static --disable-rpath
+ make
+}
+
+package() {
+ cd ${srcdir}/${_pkgname}
+ make DESTDIR=${pkgdir} install
+ install -d ${pkgdir}/usr/share/licenses/ilbc
+ install -D ${srcdir}/${_pkgname}/gips_iLBClicense.pdf ${pkgdir}/usr/share/licenses/ilbc
+}