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

46
pkgs/file/build.sh Normal file
View file

@ -0,0 +1,46 @@
pkgname=file
pkgver=5.39
ext="dev:doc"
fetch() {
curl "ftp://ftp.astron.com/pub/file/file-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm $pkgdir/usr/lib/*.la
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/share/man
rm -r $pkgdir/usr/lib/pkgconfig
}
package_dev() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
package_doc() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/lib
rm -r $pkgdir/usr/bin
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/share/misc
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

35
pkgs/less/build.sh Normal file
View file

@ -0,0 +1,35 @@
pkgname=less
pkgver=563
ext="doc"
fetch() {
curl "http://www.greenwoodsoftware.com/less/less-563.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/share
}
package_doc() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

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
}

28
templates/simple.build.sh Normal file
View file

@ -0,0 +1,28 @@
pkgname=
pkgver=
fetch() {
curl "" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}