summaryrefslogtreecommitdiff
path: root/community/ted
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-04-19 11:44:15 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-04-19 11:44:15 +0200
commitf97d206e9152e1d29ad8fb9f2ea2aee95f1da625 (patch)
treeaf56a7953cb3e5e4619535b1509b85fec5408505 /community/ted
parent32ead4093d89e260920e5bb604e7eeeeff26e725 (diff)
parent85ca6bfccdec6939881572fb1154f1a07d54937c (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: core/openssl/PKGBUILD testing/at-spi2-core/PKGBUILD testing/brasero/PKGBUILD testing/brasero/brasero.install testing/cheese/PKGBUILD testing/cheese/cheese.install testing/clutter/PKGBUILD testing/eog/PKGBUILD testing/gdm/PKGBUILD testing/gdm/gdm-autologin.pam testing/gdm/gdm-fingerprint.pam testing/gdm/gdm-password.pam testing/gdm/gdm-smartcard.pam testing/gedit/PKGBUILD testing/gedit/gedit.install testing/glib-networking/PKGBUILD testing/glib-networking/glib-networking.install testing/gnome-online-accounts/PKGBUILD testing/gnome-screenshot/PKGBUILD testing/gnome-system-log/PKGBUILD testing/gnome-system-monitor/PKGBUILD testing/gnome-system-monitor/gnome-system-monitor.install testing/gobject-introspection/PKGBUILD testing/gucharmap/PKGBUILD testing/gucharmap/gucharmap.install testing/libsoup/PKGBUILD testing/nautilus/PKGBUILD testing/nautilus/nautilus.install testing/tomboy/PKGBUILD testing/tomboy/tomboy.install testing/vinagre/PKGBUILD testing/vinagre/vinagre.install testing/vino/PKGBUILD testing/vino/vino.install
Diffstat (limited to 'community/ted')
-rw-r--r--community/ted/PKGBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/community/ted/PKGBUILD b/community/ted/PKGBUILD
index d6dede015..b81d0edc9 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 <pupykin.s+arch@gmail.com>
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' 'mips64el')
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/"
}