commit f30ec4156d987e0f3f1016433ff4fbe5f5a6ffea Author: Juergen Daubert <jue@jue.li> Date: Fri Apr 24 10:34:47 2015 +0200 sc: update to debian patchlevel 4 diff --git a/sc/.md5sum b/sc/.md5sum index de3d8ea..d97197b 100644 --- a/sc/.md5sum +++ b/sc/.md5sum @@ -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 diff --git a/sc/Pkgfile b/sc/Pkgfile index 32930b6..22a282c 100644 --- a/sc/Pkgfile +++ b/sc/Pkgfile @@ -5,18 +5,26 @@ name=sc version=7.16 -release=4 -source=(http://www.ibiblio.org/pub/Linux/apps/financial/spreadsheet/$name-$version.t... \ - 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 }