Advertisement
Guest User

AUR PKGBUILD asap 5.1.0-1

a guest
Jul 26th, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.76 KB | None | 0 0
  1. # $Id: PKGBUILD,v2.1 2019/01/11 00:43:36 wh Exp $
  2. # Maintainer: nisk1 <esqueleto_bajo[it_looks_like_a_snail]outlook[dot]com>
  3.  
  4. # Uncomment any of below lines to build additional plugins:
  5. #_build_vlc="yes"
  6. #_build_moc="yes"
  7. #_build_xmms="yes"
  8.  
  9. pkgname=asap
  10. pkgver=5.1.0
  11. pkgrel=1
  12. pkgdesc="Another Slight Atari Player - library and players for 8-bit Atari music format"
  13. url="http://asap.sourceforge.net"
  14. arch=('i686' 'x86_64')
  15. license=('GPL')
  16. depends=(glibc)
  17. options=(staticlibs)
  18. source=("http://downloads.sourceforge.net/asap/${pkgname}-${pkgver}.tar.gz")
  19. sha256sums=('ec881c6894d00e669e25a9c22f7ceae38ea65bd6240ec00d0a4f475c13b642b0')
  20.  
  21. if [[ "$_build_vlc" = "yes" ]]; then
  22.   makedepends+=('vlc')
  23. fi
  24.  
  25. if [[ "$_build_moc" = "yes" ]]; then
  26.   makedepends+=('moc')
  27.   source+=('http://ftp.daper.net/pub/soft/moc/stable/moc-2.5.2.tar.bz2')
  28.   sha256sums+=('f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08')
  29. fi
  30.  
  31. if [[ "$_build_xmms" = "yes" ]]; then
  32.   makedepends+=('xmms')
  33. fi
  34.  
  35. build() {
  36.     cd $srcdir/$pkgname-$pkgver/
  37.     make
  38.  
  39.     if [[ "$_build_vlc" = "yes" ]]; then
  40.         make asap-vlc
  41.     fi
  42.  
  43.     if [[ "$_build_xmms" = "yes" ]]; then
  44.         make asap-xmms
  45.     fi
  46.  
  47.     if [[ "$_build_moc" = "yes" ]]; then
  48.         cd $srcdir/moc-2.5.2
  49.         ./configure
  50.         cd $srcdir/$pkgname-$pkgver/
  51.         make asap-moc MOC_INCLUDE="$srcdir/moc-2.5.2/"
  52.     fi
  53. }
  54.  
  55. package() {
  56.     cd $srcdir/$pkgname-$pkgver/
  57.     make DESTDIR="${pkgdir}" prefix="/usr" install-asapconv install
  58.  
  59.     if [[ "$_build_vlc" = "yes" ]]; then
  60.         make DESTDIR="${pkgdir}" prefix="/usr" install-vlc
  61.     fi
  62.  
  63.     if [[ "$_build_xmms" = "yes" ]]; then
  64.         make DESTDIR="${pkgdir}" prefix="/usr" install-xmms
  65.     fi
  66.  
  67.     if [[ "$_build_moc" = "yes" ]]; then
  68.         make MOC_PLUGIN_DIR="${pkgdir}/usr/lib/moc/decoder_plugins" install-moc
  69.     fi
  70. }
  71.  
  72.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement