summaryrefslogtreecommitdiff
path: root/community-staging/gpac
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-06 00:01:34 +0000
committerroot <root@rshg054.dnsready.net>2012-06-06 00:01:34 +0000
commit91734dee3e97f809fb0fcf7add40f7af90fccd87 (patch)
tree5ea3c4fcb1f01ef60e6f841415bd5f7ab78e32f0 /community-staging/gpac
parent67db4cf68dbdb364c4dee1599294d7701f3c3b0a (diff)
Wed Jun 6 00:01:34 UTC 2012
Diffstat (limited to 'community-staging/gpac')
-rw-r--r--community-staging/gpac/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community-staging/gpac/PKGBUILD b/community-staging/gpac/PKGBUILD
new file mode 100644
index 000000000..36e5d9d58
--- /dev/null
+++ b/community-staging/gpac/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 71952 2012-06-04 05:51:49Z ebelanger $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
+
+pkgname=gpac
+pkgver=4065
+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{,.sig})
+sha1sums=('9a60014c4467acf3ac070e4e4a42d13b35575da8'
+ 'a015cef1fd003c57bd91a6d0959ccd58df2357d4')
+
+# 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
+ find . -depth -type d -name .svn -exec rm -rf {} \;
+ tar -cJf ../${pkgname}-$pkgver.tar.xz ${pkgname}-$pkgver/*
+ popd
+ rm -r ${pkgname}-${pkgver}
+ gpg --detach-sign --use-agent -u ${GPGKEY} ${pkgname}-${pkgver}.tar.xz
+}
+
+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
+}