summaryrefslogtreecommitdiff
path: root/community/ted
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/ted
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/ted')
-rw-r--r--community/ted/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/ted/PKGBUILD b/community/ted/PKGBUILD
new file mode 100644
index 000000000..0a62bc597
--- /dev/null
+++ b/community/ted/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 9087 2010-01-23 13:12:23Z foutrelis $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=ted
+pkgver=2.21
+pkgrel=2
+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)
+md5sums=('34ae855938a3b364eb587cca504ba356')
+
+build() {
+ cd $srcdir/Ted-$pkgver
+ sed -i "s|--with-GTK|--with-GTK --prefix=/usr/share|g" Makefile || return 1
+ # libpng 1.4
+ sed -i "s|png_info_init|png_create_info_struct|g" bitmap/bmpng.c || return 1
+ make compile.shared || return 1
+ make package.shared || return 1
+ mkdir -p $pkgdir/usr/share/
+ cd $pkgdir/usr/share/
+ tar -zxvf $srcdir/Ted-$pkgver/tedPackage/ted-$pkgver-linux-$CARCH.tar.gz || return 1
+ mv bin ../
+ mkdir -p $pkgdir/usr/share/man/man1
+ cd $pkgdir/usr/share/Ted/
+ mv Ted.1 rtf2pdf.1 rtf2ps.1 ../../share/man/man1/ || return 1
+ sed -i "s|usr/local/afm|usr/share/Ted/afm|g" gsafm.sh
+ mv *.sh $pkgdir/usr/bin/ || return 1
+}