summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c100ad49b0028b08962ed2bf182cbd20b8bef9b (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
# Maintainer: Jared Sutton <jpsutton at gmail dot com>
pkgname=playgsf-git
_pkgname=playgsf
pkgver=r9.9653dc6
pkgrel=1
pkgdesc="Simple command line player for gsf files based on a winamp plugin"
arch=('i686' 'x86_64')
conflicts=('playgsf')
provides=('playgsf')
url="https://github.com/jpsutton/${_pkgname}"
license=('unknown')
groups=('multimedia')
makedepends=('libsndfile' 'libsamplerate')
depends=('libao' 'zlib')
source=("git+https://github.com/jpsutton/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${_pkgname}"
  mkdir -p "$pkgdir/usr/bin/"
  install playgsf "$pkgdir/usr/bin/"
}