Added templates, file and less

This commit is contained in:
Ella-0 2021-01-27 11:19:03 +00:00
parent 422942d6d7
commit 7ef735574d
4 changed files with 138 additions and 0 deletions

29
templates/cmake.build.sh Normal file
View file

@ -0,0 +1,29 @@
pkgname=
pkgver=
fetch() {
curl "" -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
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}