blob: f5ad6cbbb638cfa48dfcb9e2b591bf4a8032cf6d (
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
46
47
48
49
50
51
52
53
|
# $Id: PKGBUILD 94884 2013-08-01 06:54:59Z bpiotrowski $
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=gpac
pkgver=4288
pkgrel=3
pkgdesc="A multimedia framework based on the MPEG-4 Systems standard"
arch=('i686' 'x86_64' 'mips64el')
url="http://gpac.sourceforge.net"
license=('LGPL')
depends=('ffmpeg' 'libjpeg' 'libpng' 'glu' 'libxv')
makedepends=('jack' 'a52dec' 'freetype2' 'faad2' 'libmad' 'mesa')
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} gpac-ffmpeg.patch)
sha1sums=('6ba29de672b6e4260e510e0e16d5bc0ab09cabb6'
'SKIP'
'63f59ab745c57bf7d242e942e30a4e6c7a1236b0')
# source PKGBUILD && mksource
mksource() {
[[ -x /usr/bin/svn ]] || (echo "svn not found. Install subversion." && return 1)
_svnver=${pkgver}
_svntrunk="svn://svn.code.sf.net/p/gpac/code/trunk/gpac"
_svnmod="$pkgname-${pkgver}"
mkdir ${pkgname}-${pkgver}
pushd ${pkgname}-${pkgver}
svn co $_svntrunk --config-dir ./ -r $_svnver $_svnmod
revision="$(svnversion ${pkgname}-${pkgver})"
echo "#define GPAC_SVN_REVISION \"$revision\"" > ${pkgname}-${pkgver}/include/gpac/revision.h
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
}
prepare() {
cd ${pkgname}-${pkgver}
patch -p0 -i "${srcdir}/gpac-ffmpeg.patch"
}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr --mandir=/usr/share/man --X11-path=/usr --use-js=no
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install install-lib
}
|