blob: f67e0d91d23cef64c6537ecbdcc07051f95c149a (
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
38
39
40
41
42
43
|
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
# Contributor: fenugrec <fenugrec at users sourceforge org>
# based on vspcplay PKGBUILD by rabyte / Boohbah
_pkgbase=vspcplay
pkgname=vspcplay-git
pkgver=1.4.r73.8de179a
pkgrel=1
pkgdesc="A terminal-based visual SNES sound file (SPC) player and optimisation tool"
arch=('i686' 'x86_64')
url="http://vspcplay.raphnet.net/"
license=('GPL2')
depends=('sdl')
makedepends=('git')
conflicts=('vspcplay')
provides=('vspcplay')
source=(git+https://github.com/raphnet/vspcplay)
md5sums=('SKIP')
pkgver() {
printf "%s.r%s.%s" \
"$(
# Parse base version from the Makefile
sed -n -e 's/.*-DVERSION_STR=\\"\([^"]*\)\\".*/\1/p' \
"${_pkgbase}/Makefile"
)" \
"$(git -C "${_pkgbase}" rev-list --count HEAD)" \
"$(git -C "${_pkgbase}" rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgbase}"
make CC="gcc ${CFLAGS}" LD="\$(CPP) ${LDFLAGS}"
cd utils
make CC="gcc ${CFLAGS} ${LDFLAGS}"
}
package() {
cd "${srcdir}/${_pkgbase}"
mkdir -p "${pkgdir}/usr/bin"
install -m755 vspcplay utils/applymask32 "${pkgdir}/usr/bin/"
install -Dm644 vspcplay-icon.ico "${pkgdir}/usr/share/pixmaps/vspcplay.ico"
}
|