summaryrefslogtreecommitdiff
path: root/user/samurai/APKBUILD
blob: 11d65fecb9963185eb857eb4d1d82fad1dd3f492 (plain) (blame)
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
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=samurai
pkgver=1.2
pkgrel=0
pkgdesc="Pure-C drop-in replacement for ninja"
url="https://github.com/michaelforney/samurai"
arch="all"
options="!check" # no test suite and upstream build-tests against Chromium anyhow
license="Apache-2.0 OR ISC"
depends=""
makedepends=""
provides="ninja"
replaces="ninja"
subpackages="$pkgname-doc"
source="https://github.com/michaelforney/samurai/releases/download/$pkgver/samurai-$pkgver.tar.gz
	CVE-2021-30218.patch
	CVE-2021-30219.patch"

# secfixes:
#   1.2-r0:
#     - CVE-2021-30218
#     - CVE-2021-30219

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
	cd "$pkgdir/usr/bin"
	ln -s samu ninja
}

sha512sums="bbe6a582c34b04f1df53b76c1647aa3e03c4698ebf7591a203935f11ffa05971bbcb86dc1a8c06aeb904cdc741abb08918122810fc47216fed0a6d9f87fd1225  samurai-1.2.tar.gz
6e1c3a0bd92e006f364a81e9e51394f1bc583efa96120306fe33dc0a48cb4babaa8e8c97d754d3c37cda4b4936e77f64e4c138ccb8cfedfdce43adb09c393edb  CVE-2021-30218.patch
0504b137fc9ac113453075a22bdfac4ab7616f668e640b7125041400729aaecad1173c528934223246035f68a95d92c6a85e62d1ea5fea996d85647cb33483eb  CVE-2021-30219.patch"