summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18f991541dc7699c0b6df564113f8176fbf629f7 (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
# Maintainer: Nicolas Guillaumin <nicolas plus archlinux at guillaumin dot me>
_realpkgname=STYMulator
pkgname=stymulator
pkgver=0.21a
pkgrel=1
pkgdesc="STYMulator is an Open Source (GPL License) player which plays music files in the YM chiptune format."
arch=('x86_64')
url="http://atariarea.krap.pl/stymulator/"
license=('GPL2')
depends=("alsa-lib" "ncurses")
changelog=$pkgname.changelog
source=("http://atariarea.krap.pl/stymulator/files/$_realpkgname-$pkgver.tar.gz")
md5sums=("e6ab8164dfac0300bb91a82f6e704841")

prepare() {
    cd "$_realpkgname-$pkgver/src"

    # Patch Makefile to remove hardcoded /usr/bin installation directory
    sed -i "s/\/usr\/bin$/\$(DESTDIR)/g" Makefile
    cat Makefile
}

build() {
    cd "$_realpkgname-$pkgver/src"
    make
}

package() {
    cd "$_realpkgname-$pkgver/src"
    mkdir -p $pkgdir/usr/bin
    make DESTDIR="$pkgdir/usr/bin" install
}