mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 00:34:26 +02:00
52 lines
2 KiB
Text
52 lines
2 KiB
Text
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=kati
|
|
pkgver=0_git20240430
|
|
_gitrev=3402c1e4b5ab1e3454e2bcefdddc60359e89a034
|
|
pkgrel=1
|
|
pkgdesc="Experimental GNU make clone"
|
|
url="https://github.com/google/kati"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
checkdepends="bash findutils go python3"
|
|
_make=4.2.1 # check README.md for compatible version
|
|
source="https://github.com/google/kati/archive/$_gitrev/kati-$_gitrev.tar.gz
|
|
https://ftp.gnu.org/gnu/make/make-$_make.tar.gz
|
|
gcc14-find_if.patch
|
|
makefile-no-git.patch
|
|
no-march-native.patch
|
|
testcase-wildcard.patch
|
|
"
|
|
builddir="$srcdir/$pkgname-$_gitrev"
|
|
|
|
build() {
|
|
make KATI_VERSION="$_gitrev"
|
|
|
|
if want_check; then
|
|
cd "$srcdir/make-$_make"
|
|
update_config_guess
|
|
./configure
|
|
"$builddir"/ckati -C glob libglob.a
|
|
"$builddir"/ckati make
|
|
fi
|
|
}
|
|
|
|
check() {
|
|
PATH="$srcdir/make-$_make:$PATH" go test -v
|
|
}
|
|
|
|
package() {
|
|
install -Dvm755 ckati -t "$pkgdir"/usr/bin/
|
|
|
|
# Golang kati has been deleted from the upstream repo
|
|
ln -sv ckati "$pkgdir"/usr/bin/kati
|
|
}
|
|
|
|
sha512sums="
|
|
6edc55a3d7fc0695656bed8837f216f98ae15d85ef88abde652b89ab80ca61a7b6c199229b6db0933fcc961ca33505bbc0892546f20be51a06ab67580f0a4c98 kati-3402c1e4b5ab1e3454e2bcefdddc60359e89a034.tar.gz
|
|
d5f6ce3ac7c9a55cf8c1c04afa7d967dd311c9bb3167275ebb2649cf144f3740cf08450dc010a6acdea1fd529fd528a50b3c3381f4c9a7e83ec59b761817a038 make-4.2.1.tar.gz
|
|
f6edf26461c30d278752e64a24615e3852b4ad17e89cb3605e7e5381252334b64dc1db97aed9d3c41deaca1d0122ad1a37cdafc57c0b55540da9c9147eec38c0 gcc14-find_if.patch
|
|
a5279564ab22120b12970cc79f9c1a2924a9aa74044a08d55e057e0a3a48a0749331528a2a6a9d736b3b63e2aa7d5edc41826b58e63adc309ab05fd8ba9215b6 makefile-no-git.patch
|
|
d1b276eed1dfe0750fef2e6c9166629c3c48b76ed3b4001e15b61c64ecd7bb9bef8efc989bbb800c5c698578b487c4b0ab399faec3099a51a3506f2f58ba9ab9 no-march-native.patch
|
|
67511d8536eda05af6856335757b6da735e1b377eeb0e7a66e54ba0011d400be3f093cc1039163fe0e74ccb7ca7c37db5af6db2723bed5478eb4ed418ed87352 testcase-wildcard.patch
|
|
"
|