blob: 2beaa64fd8459f4cdd9b4f5d69e945e75202dc1a (
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=ffnightman-git
pkgver=0.0.1
pkgrel=4
pkgdesc='Siemens filesystem extractor.'
arch=(any)
url='https://github.com/siemens-mobile-hacks/ffnightman'
license=(MIT)
depends=(libffshit-git spdlog fmt)
makedepends=(cmake)
source=(git+https://github.com/siemens-mobile-hacks/ffnightman)
sha256sums=('SKIP')
prepare() {
cd "ffnightman"
git submodule init
git submodule update
}
build() {
cmake -B build -S ffnightman -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
}
package() {
DESTDIR="$pkgdir" cmake --install build --prefix /usr
}
pkgver() {
cd "ffnightman"
cat CMakeLists.txt | grep 'project(' -i | grep -P 'VERSION[ ]*[.0-9]*' -o | head -n1 | awk '{ print $2 }'
}
|