Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # $Id: PKGBUILD,v2.1 2019/01/11 00:43:36 wh Exp $
- # Maintainer: nisk1 <esqueleto_bajo[it_looks_like_a_snail]outlook[dot]com>
- # Uncomment any of below lines to build additional plugins:
- #_build_vlc="yes"
- #_build_moc="yes"
- #_build_xmms="yes"
- pkgname=asap
- pkgver=5.1.0
- pkgrel=1
- pkgdesc="Another Slight Atari Player - library and players for 8-bit Atari music format"
- url="http://asap.sourceforge.net"
- arch=('i686' 'x86_64')
- license=('GPL')
- depends=(glibc)
- options=(staticlibs)
- source=("http://downloads.sourceforge.net/asap/${pkgname}-${pkgver}.tar.gz")
- sha256sums=('ec881c6894d00e669e25a9c22f7ceae38ea65bd6240ec00d0a4f475c13b642b0')
- if [[ "$_build_vlc" = "yes" ]]; then
- makedepends+=('vlc')
- fi
- if [[ "$_build_moc" = "yes" ]]; then
- makedepends+=('moc')
- source+=('http://ftp.daper.net/pub/soft/moc/stable/moc-2.5.2.tar.bz2')
- sha256sums+=('f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08')
- fi
- if [[ "$_build_xmms" = "yes" ]]; then
- makedepends+=('xmms')
- fi
- build() {
- cd $srcdir/$pkgname-$pkgver/
- make
- if [[ "$_build_vlc" = "yes" ]]; then
- make asap-vlc
- fi
- if [[ "$_build_xmms" = "yes" ]]; then
- make asap-xmms
- fi
- if [[ "$_build_moc" = "yes" ]]; then
- cd $srcdir/moc-2.5.2
- ./configure
- cd $srcdir/$pkgname-$pkgver/
- make asap-moc MOC_INCLUDE="$srcdir/moc-2.5.2/"
- fi
- }
- package() {
- cd $srcdir/$pkgname-$pkgver/
- make DESTDIR="${pkgdir}" prefix="/usr" install-asapconv install
- if [[ "$_build_vlc" = "yes" ]]; then
- make DESTDIR="${pkgdir}" prefix="/usr" install-vlc
- fi
- if [[ "$_build_xmms" = "yes" ]]; then
- make DESTDIR="${pkgdir}" prefix="/usr" install-xmms
- fi
- if [[ "$_build_moc" = "yes" ]]; then
- make MOC_PLUGIN_DIR="${pkgdir}/usr/lib/moc/decoder_plugins" install-moc
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement