updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / aegisub-stable-svn / PKGBUILD
blob8af2412d65ff0499011ddad193093d723878b85e
1 # Maintainer: Hilinus
3 pkgname=aegisub-stable-svn
4 pkgver=5610
5 pkgrel=2
6 pkgdesc="A general-purpose subtitle editor with ASS/SSA support"
7 arch=('i686' 'x86_64')
8 url="http://www.aegisub.net"
9 license=('GPL' 'BSD')
10 depends=('ffmpegsource2-svn' 'lua' 'wxgtk>=2.8.11' 'hunspell' 'libass' 'hicolor-icon-theme' 'desktop-file-utils')
11 makedepends=('imagemagick>=6.6.2.10' 'subversion' 'intltool')
12 provides=('aegisub')
13 conflicts=('aegisub')
14 source=(license.txt)
15 install=aegisub-stable-svn.install
16 md5sums=('3e13350007702bd7117e8f35bac376f1')
18 _svntrunk=http://svn.aegisub.org/branches/aegisub_2.1.9/aegisub
19 _svnmod=aegisub
22 build() {
23   cd "$srcdir"
25   if [ -d $_svnmod ]; then
26     cd $_svnmod && svn up
27   else
28     svn co $_svntrunk $_svnmod
29   fi
31   if [ -d "$srcdir/$_svnmod-build" ]; then
32     rm -rf "$srcdir/$_svnmod-build"
33   fi
35   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37   cd "$srcdir/$_svnmod-build"
39   ./autogen.sh --prefix=/usr \
40   --with-player-audio=alsa --without-{portaudio,openal,oss,pulseaudio}
42   make
45 package() {
46   cd "${srcdir}/$_svnmod-build"
47   make DESTDIR="$pkgdir" install
49   # menu icon and mimetype fix
50   sed -i -e 's/Icon=aegisub/Icon=\/usr\/share\/icons\/hicolor\/scalable\/apps\/aegisub.svg/' \
51   -e 's/application\/x-srt/application\/x-subrip/' \
52   "$pkgdir"/usr/share/applications/aegisub.desktop
54   # install the BSD license, although it is ruled by GPL according to the wiki:
55   # (http://www.malakith.net/aegiwiki/Subtitling_software_comparison)
56   install -D -m644 "$srcdir"/license.txt \
57     "$pkgdir"/usr/share/licenses/$pkgname/license.txt