updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / aegisub-bin / PKGBUILD
blob5ebb7353c9250bea131c7e0f6af44083d32d519c
1 # Maintainer: Kozec <kozec at kozec dot com>
3 pkgname=aegisub-bin
4 pkgver=2.1.8
5 pkgrel=6
6 pkgdesc="A general-purpose subtitle editor with ASS/SSA support (repacked from official binaries)"
7 arch=('i686' 'x86_64')
8 url="http://www.aegisub.net/"
9 license=('BSD')
10 depends=('alsa-lib' 'libgl' 'gtk2' 'libsm' 'libpng12' 'libpng' 'freetype2' 'pcre' 'hunspell')
11 provides=('aegisub')
12 conflicts=('aegisub-svn' 'aegisub-stable-svn' 'aegisub')
14 [ $CARCH == i686 ] && _arch="x86"
15 [ $CARCH == i686 ] && md5sums=( a2adde8ac6147798ae667d58391e9e3f d0e889d20f446c7408afc34e817aec9d 50956805bff4336ec5491256e627dcf5 )
17 [ $CARCH == x86_64 ] && _arch=$CARCH
18 [ $CARCH == x86_64 ] && md5sums=( 058464aaee5fba6bfffed5c6d60cb992 9d01a0a71c90609c18fd1ed3ff230305 50956805bff4336ec5491256e627dcf5 )
20 source=( \
21         http://ftp.aegisub.org/pub/releases/aegisub-2.1.8-linux-glibc27-$_arch.tar.bz2
22         http://dl.dropbox.com/u/134520/.nemaz_ma/libfreetype.so.6.6.2.$CARCH.tar.gz
23         aegisub
24         )
26 build() {
27         cd "$srcdir"/aegisub-2.1.8-linux-glibc27-$_arch
29         # Create dirs
30         mkdir -p "$pkgdir"/usr/bin/
31         mkdir -p "$pkgdir"/usr/share/mime/packages
32         mkdir -p "$pkgdir"/usr/lib/aegisub
34         # Copy aegisub
35         cp -R share "$pkgdir"/usr/
36         cp -R aegisub-2.1 "$pkgdir"/usr/lib/aegisub
37         cp "$srcdir"/libfreetype.so.6.6.2 "$pkgdir"/usr/lib/aegisub
38         ln -s ../../share "$pkgdir"/usr/lib/aegisub/share
40         # Launcher and symlink to /usr/bin
41         install -m 0755 "$srcdir"/aegisub "$pkgdir"/usr/bin/aegisub-2.1
42         ln -s aegisub-2.1 "$pkgdir"/usr/bin/aegisub
43