summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 966c4e3d0b5ec4a2c2264d234d96c13d076f4a93 (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
pkgname=libsnsf9x-git
pkgver=r28.6b8bd73
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)
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: