blob: cb5fa610f018b25ec34c492774344d5b28903ed3 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Joost Molenaar <jjm@j0057.nl>
pkgname=redumper
epoch=
pkgver=388
pkgrel=1
pkgdesc='Low level CD dumper utility'
arch=(x86_64)
url='https://github.com/superg/redumper'
license=('GPL-3.0-only')
depends=(
gcc-libs
glibc
libc++
libc++abi
)
makedepends=(
base-devel
cmake
ninja
llvm
clang
lld
)
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/superg/redumper/archive/refs/tags/build_$pkgver.tar.gz"
)
build() {
unset CFLAGS CXXFLAGS LDFLAGS CC CXX
CC=clang CXX=clang++ LDFLAGS=-fuse-ld=lld cmake \
-G Ninja \
-S $pkgname-build_$pkgver \
-B $pkgname-dist \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
-DCMAKE_BUILD_TYPE=None \
-DREDUMPER_CLANG_LINK_OPTIONS=-lc++ \
;
ninja -C $pkgname-dist -v
}
package() {
install -o root -g root -m 755 -d $pkgdir/usr/bin
install -o root -g root -m 755 -t $pkgdir/usr/bin $pkgname-dist/redumper
install -o root -g root -m 755 -d $pkgdir/usr/share/doc/redumper
install -o root -g root -m 644 -t $pkgdir/usr/share/doc/redumper $pkgname-build_$pkgver/README.md
install -o root -g root -m 755 -d $pkgdir/usr/share/licenses
install -o root -g root -m 644 -t $pkgdir/usr/share/licenses $pkgname-build_$pkgver/LICENSE
}
sha256sums=('dc12d50d44b8ff6df9bc798f889287961717815d6cb80cbcbe3b72ffe30e7d0a')
|