smlinux/extra/gtypist/gtypist.SMBuild

37 lines
No EOL
951 B
Text
Executable file

APP=gtypist
VERSION=2.9.5
BUILD=1sml
HOMEPAGE="https://www.gnu.org/savannah-checkouts/gnu/gtypist/gtypist.html"
DOWNLOAD="http://ftp.gnu.org/gnu/gtypist/gtypist-2.9.tar.xz"
DESC="Terminal-based universal typing tutor"
REQUIRES="netbsd-curses"
build() {
mkandenterbuilddir
rm -rf $APP-$VERSION
tar xf $SRCDIR/$APP-$VERSION.tar.?z*
cd $APP-$VERSION
fixbuilddirpermissions
patch -p1 < $SRCDIR/ncurses.patch
autoreconf -vif
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
LDFLAGS="-lterminfo -lncurses" \
./configure \
--prefix="" \
--sysconfdir=/etc
make
make install DESTDIR=$PKG
cp COPYING $PKGDOCS/
mkfinalpkg
}
SHA512SUMS="
397b2e7570f1702b1e355cf2e6ce8b0a78aa0f7e2493dcf0a39a07e1dc9e4c2bf01d16759dfcfffef3bb505b73435b6e4fb8e2565a20b7180a1867d4d3d68346 gtypist-2.9.5.tar.lz
84a29d4008f13ee0dc434b551b6846d94373679fa718d54a0cf52aeeaba8f1485e40d55f66c336bb33e23f1f939ea1711190c2a16903671febcdb191b4ffb94c ncurses.patch
"