From fe675be3a5f22b4397ea55959bb3c47b4c1b8288 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 19 Apr 2012 00:01:30 +0000 Subject: Thu Apr 19 00:01:30 UTC 2012 --- community/ted/PKGBUILD | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'community/ted/PKGBUILD') diff --git a/community/ted/PKGBUILD b/community/ted/PKGBUILD index 770a39bd4..3b3b2b57c 100644 --- a/community/ted/PKGBUILD +++ b/community/ted/PKGBUILD @@ -1,36 +1,40 @@ -# $Id: PKGBUILD 64361 2012-02-11 23:24:27Z allan $ +# $Id: PKGBUILD 69512 2012-04-17 16:00:05Z spupykin $ # Maintainer: Sergej Pupykin pkgname=ted -pkgver=2.21 -pkgrel=5 +pkgver=2.22 +pkgrel=1 pkgdesc="An easy rich text processor (with footnote support)" arch=('i686' 'x86_64') url="http://www.nllgg.nl/Ted/" depends=('bash' 'libtiff' 'libxmu' 'libxpm' 'libpng' 'gtk2') license=('GPL') -source=(ftp://ftp.nluug.nl/pub/editors/$pkgname/$pkgname-$pkgver.src.tar.gz +source=(ftp://ftp.nluug.nl/pub/editors/$pkgname/$pkgname-$pkgver.src.tar.gz ted-2.21-libpng15.patch) -md5sums=('34ae855938a3b364eb587cca504ba356' +md5sums=('08162c9164dfdde1d46e41ae64df16be' '0c339b0fa7aec6b150e07e9027cd360c') build() { cd "$srcdir/Ted-$pkgver" sed -i "s|--with-GTK|--with-GTK --prefix=/usr/share|g" Makefile - patch -p0 -i ../ted-2.21-libpng15.patch make compile.shared make package.shared } package() { - cd "$srcdir/Ted-$pkgver" - mkdir -p "$pkgdir/usr/share/" - cd "$pkgdir/usr/share/" - tar -zxvf "$srcdir/Ted-$pkgver/tedPackage/ted-$pkgver-linux-$CARCH.tar.gz" + # unpack package + mkdir -p $pkgdir/usr/share + cd "$pkgdir/usr/share" + tar xzf $srcdir/Ted-$pkgver/tedPackage/*.tar.gz + # move bin/* and share/* mv bin ../ - mkdir -p "$pkgdir/usr/share/man/man1" + mv share/* ./ + rmdir share + # move man pages cd "$pkgdir/usr/share/Ted/" + mkdir -p "$pkgdir/usr/share/man/man1" mv Ted.1 rtf2pdf.1 rtf2ps.1 ../../share/man/man1/ + # fix shell script and move them to /usr/bin sed -i "s|usr/local/afm|usr/share/Ted/afm|g" gsafm.sh mv *.sh "$pkgdir/usr/bin/" } -- cgit v1.2.3-54-g00ecf