summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8aae0a07c583e15f5585d94ac921f4ab38a38cbd (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: Tony Lambiris <tony@libpcap.net>

pkgname=libelfin-git
pkgver=r148.ac45a09
pkgrel=2
pkgdesc="C++11 ELF/DWARF parser"
arch=(x86_64)
url="https://github.com/aclements/libelfin"
license=(MIT)
depends=(glibc)
makedepends=(git)
source=("$pkgname::git+https://github.com/aclements/libelfin")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  make PREFIX="$pkgdir/usr" install
}