summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f3229f8629a95610558d646b5e946a024241a422 (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
# Maintainer: Aki-nyan <aur@catgirl.link>

pkgname=mistral-nightly
pkgver=20240411_d509238
pkgrel=1
epoch=1
pkgdesc="Cyclone V bitstream reverse-engineering project"
arch=("x86_64")
url="https://github.com/Ravenslofty/mistral"
license=("BSD-3-Clause")
groups=()
options=("!strip")
depends=("python")
optdepends=()
makedepends=("git" "gcc" "cmake" "ninja" "pkgconf" "python")
conflicts=(
	"mistral-git"
)
replaces=()
source=(
	"mistral::git+https://github.com/Ravenslofty/mistral.git#commit=d509238"
)
sha256sums=(
	"SKIP"
)


_PREFIX="/usr"
prepare() {
	cd "${srcdir}/mistral"
	[ ! -d "${srcdir}/mistral/build" ] && mkdir build
}

build() {
	cd "${srcdir}/mistral"
	cd build
	cmake -G Ninja \
		-DCMAKE_INSTALL_PREFIX=${_PREFIX} \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCOMPRESSION_LEVEL=9 \
		..
	ninja

}

package() {
	cd "${srcdir}/mistral"
	DESTDIR="${pkgdir}" PREFIX="${_PREFIX}" ninja -C build install
	install -Dm644 "${srcdir}/mistral/LICENSE" "${pkgdir}${_PREFIX}/share/licenses/mistral/LICENSE"
}