summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4cf6a268a0ccb48364e7c143d6c5896beb700349 (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
# Maintainer: Tony Lambiris <tony@libpcap.net>

pkgname=libelfin-git
pkgver=0.3.r6.g946dde5
pkgrel=1
pkgdesc="C++11 ELF/DWARF parser"
arch=(x86_64)
url="https://github.com/aclements/libelfin"
license=(MIT)
depends=(glibc)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname}::git+https://github.com/aclements/libelfin.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"

  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}

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

  make
}

package() {
  cd "${srcdir}/${pkgname}"

  make PREFIX="${pkgdir}/usr" install
}