blob: 849e52ee09a04ae0765ab50ab2623e5a8f170aba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $Id: PKGBUILD 73474 2012-07-08 09:30:16Z ibiru $
# 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
}
|