summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f297031993cffaeb21bb0f624bcc12cb23be4e00 (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
# Maintainer: Philipp Joram <phijor AT t-online DOT de>

_gitname=gba-pkm-save-edit
pkgname=${_gitname}-git
pkgver=0.r187.753ccb3
pkgrel=1
pkgdesc="A commandline application to edit save files of Pokémon-games for the GBA"
arch=('x86_64')
url="https://github.com/phijor/gba-pkm-save-edit"
license=('GPL3')
depends=('glibc')
makedepends=('git' 'make')
source=("${pkgname}::git+https://github.com/phijor/${_gitname}.git")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

package() {
  cd "${srcdir}/${pkgname}"
  install -Dm 0755 ${_gitname} "${pkgdir}/usr/bin/${_gitname}"
}

# vim:set ts=2 sw=2 et: