Advertisement
Guest User

aegisub-svn PKGBUILD

a guest
Nov 5th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.67 KB | None | 0 0
  1. # Maintainer: Hilinus
  2.  
  3. pkgname=aegisub-svn
  4. pkgver=5819
  5. pkgrel=1
  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.9>=2.9.2' '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. options=(!strip)
  16. install=aegisub-svn.install
  17. md5sums=('3e13350007702bd7117e8f35bac376f1')
  18.  
  19. _svntrunk=http://svn.aegisub.org/trunk/aegisub/
  20. _svnmod=aegisub
  21.  
  22.  
  23. build() {
  24.   cd "$srcdir"
  25.  
  26.   if [ -d $_svnmod ]; then
  27.     cd $_svnmod && svn up
  28.   else
  29.     svn co $_svntrunk $_svnmod
  30.   fi
  31.  
  32.   if [ -d "$srcdir/$_svnmod-build" ]; then
  33.     rm -rf "$srcdir/$_svnmod-build"
  34.   fi
  35.  
  36.   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  37.  
  38.   cd "$srcdir/$_svnmod-build"
  39.  
  40.   ./autogen.sh --prefix=/usr \
  41.     --with-player-audio=alsa --without-{portaudio,openal,oss,pulseaudio} \
  42.         --with-wxdir=/usr/include/wx-2.9 --with-wx-config=/usr/bin/wx-config-2.9
  43.  
  44.   make
  45. }
  46.  
  47. package() {
  48.   cd "${srcdir}/$_svnmod-build"
  49.   make DESTDIR="$pkgdir" install
  50.  
  51.   # menu icon and mimetype fix
  52.   sed -i -e 's/Icon=aegisub/Icon=\/usr\/share\/icons\/hicolor\/scalable\/apps\/aegisub.svg/' \
  53.   -e 's/application\/x-srt/application\/x-subrip/' \
  54.   "$pkgdir"/usr/share/applications/aegisub.desktop
  55.  
  56.   # install the BSD license, although it is ruled by GPL according to the wiki:
  57.   # (http://www.malakith.net/aegiwiki/Subtitling_software_comparison)
  58.   install -D -m644 "$srcdir"/license.txt \
  59.     "$pkgdir"/usr/share/licenses/$pkgname/license.txt
  60. }
  61.  
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement