2021-12-26 12:40:14 +00:00
|
|
|
pkgname=foot
|
|
|
|
pkgver=1.10.3
|
|
|
|
|
|
|
|
fetch() {
|
2022-03-13 12:03:56 +00:00
|
|
|
curl -L "https://codeberg.org/dnkl/foot/archive/$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
|
|
|
curl -L "https://codeberg.org/dnkl/fcft/archive/2.4.5.tar.gz" -o fcft.tar.gz
|
|
|
|
curl -L "https://codeberg.org/dnkl/tllist/archive/1.0.5.tar.gz" -o tllist.tar.gz
|
|
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
2021-12-26 12:40:14 +00:00
|
|
|
mv $pkgname $pkgname-$pkgver
|
|
|
|
mkdir $pkgname-$pkgver/build
|
2022-03-13 12:03:56 +00:00
|
|
|
tar -xf fcft.tar.gz -C $pkgname-$pkgver/subprojects
|
|
|
|
tar -xf tllist.tar.gz -C $pkgname-$pkgver/subprojects
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
patch -p1 < ../../netbsd-tic.patch
|
2021-12-26 12:40:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cd build
|
|
|
|
meson .. \
|
|
|
|
--buildtype=release \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=lib \
|
2022-03-13 12:03:56 +00:00
|
|
|
-Dterminfo=enabled \
|
|
|
|
-Ddefault-terminfo=foot
|
2021-12-26 12:40:14 +00:00
|
|
|
samu
|
|
|
|
}
|
|
|
|
|
|
|
|
backup() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cd build
|
|
|
|
DESTDIR=$pkgdir samu install
|
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|