summaryrefslogtreecommitdiff
path: root/community/antiword
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-15 23:14:42 +0000
committerroot <root@rshg054.dnsready.net>2011-09-15 23:14:42 +0000
commit062d1ba2c4d5de52d97f339c5a3ac1199b8533f6 (patch)
treebd00d2e476e1761b3771b1849a3a207dd8cb5c57 /community/antiword
parentd5effc9aadfb9ed5890376ca9497eef52fafcf83 (diff)
Thu Sep 15 23:14:42 UTC 2011
Diffstat (limited to 'community/antiword')
-rw-r--r--community/antiword/PKGBUILD38
-rw-r--r--community/antiword/antiword.install12
2 files changed, 24 insertions, 26 deletions
diff --git a/community/antiword/PKGBUILD b/community/antiword/PKGBUILD
index 9103de17c..3d5c45644 100644
--- a/community/antiword/PKGBUILD
+++ b/community/antiword/PKGBUILD
@@ -1,26 +1,34 @@
-# Maintainer : Aaron, phrakture, Griffin <aaron@archlinux.org>
+# $Id: PKGBUILD 55537 2011-09-14 08:02:10Z andrea $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Aaron, phrakture, Griffin <aaron@archlinux.org>
# Contributor: Gustav Munkby <grddev@gmx.net>
pkgname=antiword
pkgver=0.37
-pkgrel=2
-pkgdesc="Antiword is a free MS Word reader for Linux and RISC OS"
+pkgrel=3
+pkgdesc="A free MS Word reader for Linux and RISC OS"
arch=('i686' 'x86_64')
url="http://www.winfield.demon.nl/"
-license="GPL"
-depends=('glibc')
+license=('GPL')
+depends=('bash')
install=antiword.install
-source=(http://www.winfield.demon.nl/linux/$pkgname-$pkgver.tar.gz \
- antiword-helper)
-md5sums=('f868e2a269edcbc06bf77e89a55898d1' '01a988376cfd4bb268120ab597c9abe3')
+source=("http://www.winfield.demon.nl/linux/$pkgname-$pkgver.tar.gz"
+ 'antiword-helper')
+md5sums=('f868e2a269edcbc06bf77e89a55898d1'
+ '01a988376cfd4bb268120ab597c9abe3')
-build()
-{
- cd $srcdir/$pkgname-$pkgver
- sed -i "s|CFLAGS =.*|CFLAGS = $CFLAGS -DNDEBUG|g; \
- s|GLOBAL_INSTALL_DIR =.*|GLOBAL_INSTALL_DIR = /usr/bin|g" \
- Makefile.Linux
- make DESTDIR=$pkgdir global_install
+build(){
+ cd "${srcdir}"/$pkgname-$pkgver
+
+ sed -i "s|GLOBAL_INSTALL_DIR =.*|GLOBAL_INSTALL_DIR = /usr/bin|g" \
+ Makefile.Linux
+
+ make OPT="${CFLAGS} -DNDEBUG" LDFLAGS="${LDFLAGS}"
+}
+
+package() {
+ cd "${srcdir}"/$pkgname-$pkgver
+ make DESTDIR="${pkgdir}" global_install
install -m755 $srcdir/antiword-helper $pkgdir/usr/bin/
install -Dm644 Docs/antiword.1 $pkgdir/usr/share/man/man1/antiword.1
}
diff --git a/community/antiword/antiword.install b/community/antiword/antiword.install
index 58aaccde7..010579522 100644
--- a/community/antiword/antiword.install
+++ b/community/antiword/antiword.install
@@ -1,5 +1,4 @@
-post_install()
-{
+post_install() {
cat << EOF
NOTES On Antiword Integration:
@@ -15,12 +14,3 @@ NOTES On Antiword Integration:
* To enable drag-and-drop support in KDE, use the kantiword script
EOF
}
-
-post_upgrade()
-{
- post_install $1
-}
-
-op=$1
-shift
-$op $*