1
0
forked from ports/opt

sc: update to debian patchlevel 4

This commit is contained in:
Juergen Daubert 2015-04-24 10:34:47 +02:00
parent 4f8ed31ebd
commit f30ec4156d
2 changed files with 14 additions and 6 deletions

View File

@ -1,2 +1,2 @@
1db636e9b2dc7cd73c40aeece6852d47 sc-7.16.tar.gz
174065ad15f2e4450398cc438a9d488f sc_7.16-3.debian.tar.gz
314a31d131142980ab65237eb30acf3a sc_7.16-4.debian.tar.xz
5463eae8cbd1a156d2d9abd57a84441c sc_7.16.orig.tar.gz

View File

@ -5,18 +5,26 @@
name=sc
version=7.16
release=4
source=(http://www.ibiblio.org/pub/Linux/apps/financial/spreadsheet/$name-$version.tar.gz \
http://ftp.de.debian.org/debian/pool/main/s/sc/sc_7.16-3.debian.tar.gz)
release=5
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)
build () {
cd $name-$version
patch -p1 -i $SRC/debian/patches/debian-changes-7.16-3
local p
for p in $(< $SRC/debian/patches/series); do
patch -p1 -i $SRC/debian/patches/$p
done
sed -e "/^CFLAGS=/s/-O2 -pipe/$CFLAGS/" \
-e "/^LIBDIR=/s|doc/||" \
-e "/^LIB=/s/ncurses/ncursesw/" -i Makefile
install -d $PKG/usr/{bin,man/man1,share/sc}
make
make prefix=$PKG/usr install
sed -i "s|$PKG||g" $PKG/usr/man/man1/sc.1
}