makedeb


uade 3.05-0


uade plays 200+ Amiga era computer music formats

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for uade.

# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: grimi <grimi at poczta dot fm>

_srcname=uade-uade
pkgname=uade
pkgver=3.05
pkgrel=0
pkgdesc="uade plays 200+ Amiga era computer music formats"
arch=('i386' 'amd64')
url="https://zakalwe.fi/uade"
license=('GPL-2' 'LGPL-2.1')
makedepends=('libao-dev' 'bencodetools' 'libzakalwe' 'python3' 'pkgconf' 'libsdl2-dev')
optmakedepends=('audacious-dev: audacious plugin'
                'libfuse-dev: uadefs')
depends=('libao4' 'bencodetools' 'libzakalwe' 'python3')
optdepends=('libfuse2: uadefs')
source=("$pkgname-$pkgver.tar.bz2::https://gitlab.com/uade-music-player/uade/-/archive/uade-${pkgver}/uade-uade-${pkgver}.tar.bz2")
b2sums=('9ac1652ad2fdfa6323ee03f0f8ce48d9e3a5acf3902e632522bcb82ab4902b57ac4065ff65354816343fba8c205742d0ade5072b7929e8586110f7d8941746a2')

build() {
  cd "$_srcname-$pkgver"
  ./configure --prefix=/usr --package-prefix="$pkgdir" --with-text-scope
  # install python script in pkgdir
  sed -i 's!setup.py install.*!setup.py install --root='"$pkgdir"' --optimize=1 --install-layout deb!' 'Makefile' 
  make -j $(nproc)
}

package() {
  cd "$_srcname-$pkgver"
  make install

  # postinst script
  install -dm755 "$pkgdir/DEBIAN/"
  echo 'echo '\''''>>>''To setup Your own config:
''>>>''copy from /usr/share/uade/
''>>>''"uade.conf" and "uaerc" to ~/.uade,
''>>>''and do some changes...'\''' > "$pkgdir/DEBIAN/postinst"
chmod 755 "$pkgdir/DEBIAN/postinst"

  # doc
  install -Dm644 README "$pkgdir/usr/share/doc/${pkgname}/readme"
  install -Dm644 COPYING "$pkgdir/usr/share/doc/${pkgname}/license"
  install -Dm644 doc/UAE-* "${pkgdir}/usr/share/doc/$pkgname/"
  ln -s "/usr/share/common-licenses/GPL-2" "${pkgdir}/usr/share/doc/$pkgname/"
  ln -s "/usr/share/common-licenses/LGPL-2.1" "${pkgdir}/usr/share/doc/$pkgname/"
  install -Dm644 ChangeLog "$pkgdir/usr/share/doc/${pkgname}/changelog"
  install -Dm644 AUTHORS "$pkgdir/usr/share/doc/${pkgname}/authors"
  gzip "$pkgdir/usr/share/doc/${pkgname}/changelog"
}