From 0f974e2ffd930b90d7ac04f8ac2db296882e0dec Mon Sep 17 00:00:00 2001 From: Cecil Date: Sun, 2 Sep 2012 20:48:17 -0700 Subject: libaacs-git:initial inclusion. closes #801 --- abs/extra/libaacs-git/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 abs/extra/libaacs-git/PKGBUILD diff --git a/abs/extra/libaacs-git/PKGBUILD b/abs/extra/libaacs-git/PKGBUILD new file mode 100644 index 0000000..e88a6e4 --- /dev/null +++ b/abs/extra/libaacs-git/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Gustavo Alvarez + +pkgname=libaacs-git +pkgver=20120508 +pkgrel=1 +pkgdesc="Advanced Access Content System (GIT version)" +arch=('i686' 'x86_64') +license=('LGPL') +url="http://www.videolan.org/developers/libaacs.html" +depends=('libgcrypt') +makedepends=('git' 'flex' 'bison') +options=('!libtool') +provides=('libaacs') +conflicts=('libaacs') + +_gitroot="git://git.videolan.org/libaacs.git" +_gitname="libaacs" + +build() { + msg "Connecting to GIT server..." + + if [ -d "${srcdir}"/"${_gitname}" ] ; then + cd "${_gitname}" && git pull + else + git clone --depth=1 "${_gitroot}" + fi + + [ -d "${srcdir}"/"${_gitname}"-build ] && rm -fr "${srcdir}"/"${_gitname}"-build + cp -R "${srcdir}"/"${_gitname}" "${srcdir}"/"${_gitname}"-build + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + cd "${srcdir}"/"${_gitname}"-build + ./bootstrap + ./configure --prefix=/usr + make +} +package() { + cd "${srcdir}"/"${_gitname}"-build + make DESTDIR="${pkgdir}" install +} +md5sums=() -- cgit v0.12