summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35c95ef2b1ce1fa2022aa2a634900cd5708e2fe0 (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
34
35
36
37
38
39
# Maintainer: Kibouo <csonka.mihaly@hotmail.com>
pkgname=elfparser-git
pkgver=r7.39d21ca
pkgrel=1
pkgdesc='Provides basic information and static analysis of an ELF binary.'
arch=('any')
url='https://github.com/jacob-baines/elfparser'
license=('GPL3')
depends=('boost')
makedepends=('cmake' 'make' 'git' 'gcc')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("${pkgname}::git+https://github.com/jacob-baines/elfparser.git")
md5sums=('SKIP')
pkgver() {
	cd "${pkgname}"

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

    mkdir build
    cd build
    cmake ..
    make
}
check() {
    cd "${pkgname}"

    cd build
    ./elfparser-cli_test
}
package() {
    cd "${pkgname}"

    mkdir -p "${pkgdir}/usr/bin"
    install -Dm755 build/./elfparser-cli "${pkgdir}/usr/bin/elfparser"
}