summaryrefslogtreecommitdiff
path: root/community-testing/gpac/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-03 23:14:43 +0000
committerroot <root@rshg054.dnsready.net>2012-01-03 23:14:43 +0000
commitd1d68784dc66793601c239fa64cc0e02ebd9444e (patch)
tree15179b96ec3e632fad3cc528115d83c0fe47e5bd /community-testing/gpac/PKGBUILD
parent48c96871761a4aad193d814e87ddb87c322e17d2 (diff)
Tue Jan 3 23:14:42 UTC 2012
Diffstat (limited to 'community-testing/gpac/PKGBUILD')
-rw-r--r--community-testing/gpac/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community-testing/gpac/PKGBUILD b/community-testing/gpac/PKGBUILD
new file mode 100644
index 000000000..8e66362d6
--- /dev/null
+++ b/community-testing/gpac/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 61561 2012-01-03 00:05:30Z ebelanger $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
+
+pkgname=gpac
+pkgver=3824
+pkgrel=1
+pkgdesc="A multimedia framework based on the MPEG-4 Systems standard"
+arch=('i686' 'x86_64')
+url="http://gpac.sourceforge.net"
+license=('LGPL')
+depends=('ffmpeg' 'libjpeg' 'libpng' 'mesa')
+makedepends=('jack' 'a52dec' 'freetype2' 'libxv' 'faad2' 'libmad')
+optdepends=('jack: for jack support' 'a52dec: for A52 support'
+ 'faad2: for AAC support' 'libmad: for mp3 support')
+options=('!makeflags')
+source=(ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${pkgver}.tar.xz)
+sha1sums=('bf7039c2585d539475babc7996851627efd7ec59')
+
+# source PKGBUILD && mksource
+mksource() {
+ [[ -x /usr/bin/svn ]] || (echo "svn not found. Install subversion." && return 1)
+ _svnver=$pkgver
+ _svntrunk="https://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac"
+ _svnmod="$pkgname-$pkgver"
+ mkdir ${pkgname}-$pkgver
+ pushd ${pkgname}-$pkgver
+ svn co $_svntrunk --config-dir ./ -r $_svnver $_svnmod
+ echo "#define GPAC_SVN_REVISION \"$_svnver\"" > ${pkgname}-$pkgver/include/gpac/version.h
+ find . -depth -type d -name .svn -exec rm -rf {} \;
+ tar -cJf ../${pkgname}-$pkgver.tar.xz ${pkgname}-$pkgver/*
+ popd
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --mandir=/usr/share/man --X11-path=/usr --use-js=no
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install install-lib
+}