summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e882a6cd2fe103df39fe8a6ef0bb946e05e8953 (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
# Maintainer: Kirill Zhumarin <kirill.zhumarin@gmail.com>
pkgname=elf2vkp-git
pkgver=1.1.5
pkgrel=1
pkgdesc='Tool for converting .elf to .vkp patches.'
arch=(any)
url='https://github.com/siemens-mobile-hacks/elf2vkp'
license=(MIT)
depends=()
makedepends=(cmake)
source=(git+https://github.com/siemens-mobile-hacks/elf2vkp)
sha256sums=('SKIP')

prepare() {
	cd "elf2vkp"
	git submodule init
	git submodule update
}

build() {
	cmake -B build -S elf2vkp -DCMAKE_BUILD_TYPE=Release
	cmake --build build -j$(nproc)
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

pkgver() {
	cd "elf2vkp"
	git describe --long --tags --abbrev=7 | grep -oP '^v\d+\.\d+\.\d+' | sed 's/^v//g'
}