summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38025633613dd4b2ac13acd69f0b9f6e186caa54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: spider-mario <spidermario@free.fr>
pkgname=playgsf
pkgver=0.7.1
pkgrel=4
pkgdesc="Simple command line player for gsf files based on a winamp plugin"
arch=('i686' 'x86_64')
url="http://projects.raphnet.net/#playgsf"
license=('unknown')
groups=('multimedia')
depends=('libao' 'zlib')
makedepends=('libsndfile' 'libsamplerate')
source=(fixes.patch http://projects.raphnet.net/playgsf/$pkgname-$pkgver.tar.gz)
md5sums=('126f8c82b1af1dfe4195dc9a240dd251'
         'b68de49a511c3a9bfd051ebf3325b1ef')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -p1 < "$srcdir"/fixes.patch

  # build libresample manually, building playgsf seems to fail randomly otherwise
  pushd libresample-0.1.3
    ./configure
    make
  popd

  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  mkdir -p "$pkgdir/usr/bin/"
  install playgsf "$pkgdir/usr/bin/"
}

# vim:set ts=2 sw=2 et: