Updated some stuff

This commit is contained in:
Ella-0 2021-02-03 13:03:52 +00:00
parent 89caa8b7c9
commit d39936edde
16 changed files with 496 additions and 104 deletions

30
pkgs/zig/build.sh Normal file
View file

@ -0,0 +1,30 @@
pkgname=zig
pkgver=0.7.1
fetch() {
curl -L "https://ziglang.org/download/$pkgver/zig-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}