summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b41150d5cc6c022b5d55749fcc7f76a5968e522a (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
pkgname=libsnsf9x-git
pkgver=r36.e53bff5
pkgrel=1
pkgdesc="SNSF playing library based on the Snes9x emulator"
arch=(i686 x86_64)
url='https://github.com/Deewiant/libsnsf9x'
license=(LGPL2.1)
depends=(zlib)
makedepends=(git)
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=(${pkgname}::git+https://github.com/Deewiant/libsnsf9x.git)
sha256sums=('SKIP')

pkgver() {
   cd "$srcdir/$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
      printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  cd "$srcdir/$pkgname"
  make PREFIX="$pkgdir/usr" install
}

# vim:set sw=2 et: