summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 287d5393df916ad39c57b621fed7d94cfa1ad790 (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
# Maintainer: Lubosz Sarnecki <lubosz ! gmail ! com>

pkgname=minigbs-git
pkgver=1.4.2+0+gd880bfc
pkgrel=1
pkgdesc="Small .gbs chiptune player for Linux."
arch=('i686' 'x86_64')
license=('MIT')
url="https://github.com/baines/MiniGBS"
depends=()
makedepends=('git' 'make')
provides=("minigbs="$pkgver)
replaces=("minigbs")
conflicts=("minigbs")
source=('git+https://github.com/baines/MiniGBS.git')
sha256sums=('SKIP')

pkgver() {
  cd MiniGBS
  git describe --tags --long | sed 's/-/+/g'
}

prepare() {
  cd MiniGBS

  # Install to /usr
  sed -i 's|/usr/local|/usr|' Makefile
}

build() {
  cd MiniGBS
  make
}

package() {
  cd MiniGBS
  make DESTDIR="$pkgdir" install
}