summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c63aaa281e25c7a15f425dfca6f705313af496a (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
# Maintainer: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
_pkgname=libespm
pkgname=$_pkgname-git
pkgver=r207.fe6b7b8
pkgrel=1
pkgdesc='Library for reading and writing .esp and .esm plugin files.'
arch=('any')
url="https://github.com/WrinklyNinja/$_pkgname"
license=('GPL3')
depends=('boost-libs')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+$url.git")
md5sums=('SKIP')

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

package() {
  cd "$srcdir/$_pkgname"
  git checkout-index -a --prefix="$pkgdir/usr/include/$_pkgname/"
}