added pico with symlink to nano

This commit is contained in:
Ella-0 2021-05-20 21:34:35 +01:00
parent a248d8321a
commit 63a64d7e7d

36
pkgs/pico/build.sh Normal file
View file

@ -0,0 +1,36 @@
pkgname=pico
pkgver=2.00
fetch() {
curl "http://ftp.swin.edu.au/alpine/alpine-$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.bz2
tar -xf $pkgname-$pkgver.tar.bz2
mv alpine-$pkgver $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--without-ldap \
--without-ssl \
--without-krb5
make -s c-client
make -s c-client.d
make -s -C pith
make -s -C pico
}
package() {
cd $pkgname-$pkgver
install -d /usr/bin
install -Dm755 ./pico/pico $pkgdir/usr/bin/
install -Dm755 ./pico/pilot $pkgdir/usr/bin/
ln -sr $pkgdir/usr/bin/pico $pkgdir/usr/bin/nano
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}