opt/sc/Pkgfile

31 lines
871 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Curses based spreadsheet with vi key-bindings
# URL: http://www.ibiblio.org/pub/Linux/apps/financial/spreadsheet/
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2006-02-23 16:26:10 +01:00
# Depends on: ncurses
name=sc
version=7.16
2017-01-05 17:56:41 +01:00
release=6
2015-04-24 10:34:47 +02:00
source=(http://ftp.de.debian.org/debian/pool/main/s/sc/sc_7.16.orig.tar.gz \
http://ftp.de.debian.org/debian/pool/main/s/sc/sc_7.16-4.debian.tar.xz)
2006-02-23 16:26:10 +01:00
build () {
cd $name-$version
2015-04-24 10:34:47 +02:00
local p
for p in $(< $SRC/debian/patches/series); do
patch -p1 -i $SRC/debian/patches/$p
done
2010-10-07 16:24:47 +02:00
sed -e "/^CFLAGS=/s/-O2 -pipe/$CFLAGS/" \
-e "/^LIBDIR=/s|doc/||" \
-e "/^LIB=/s/ncurses/ncursesw/" -i Makefile
2015-04-24 10:34:47 +02:00
2017-01-05 17:56:41 +01:00
install -d $PKG/usr/{bin,share/man/man1,share/sc}
2015-04-24 10:34:47 +02:00
2010-10-07 16:24:47 +02:00
make
2017-01-05 17:56:41 +01:00
make prefix=$PKG/usr MANDIR=$PKG/usr/share/man/man1 install
2015-04-24 10:34:47 +02:00
2017-01-05 17:56:41 +01:00
sed -i "s|$PKG||g" $PKG/usr/share/man/man1/sc.1
2006-02-23 16:26:10 +01:00
}