Skip to content
Snippets Groups Projects
Commit 32f2fbbd authored by Leo's avatar Leo
Browse files

community/antiword: modernize

parent 9e84d5d9
No related branches found
No related tags found
1 merge request!6542community/antiword: modernize
...@@ -2,36 +2,21 @@ ...@@ -2,36 +2,21 @@
# Maintainer: Michael Mason <ms13sp@gmail.com> # Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=antiword pkgname=antiword
pkgver=0.37 pkgver=0.37
pkgrel=3 pkgrel=4
pkgdesc="A free MS Word reader" pkgdesc="A free MS Word reader"
options="!check" # No testsuite
url="http://www.winfield.demon.nl" url="http://www.winfield.demon.nl"
arch="all" arch="all"
license="GPL-2.0" license="GPL-2.0-only"
depends="" source="http://www.winfield.demon.nl/linux/antiword-$pkgver.tar.gz
makedepends=""
install=""
subpackages=""
source="http://www.winfield.demon.nl/linux/$pkgname-$pkgver.tar.gz
CVE-2014-8123.patch CVE-2014-8123.patch
" "
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() { build() {
cd "$_builddir" make OPT="-Os"
make || return 1
} }
package() { package() {
cd "$_builddir"
install -m755 -D "$srcdir"/"$pkgname-$pkgver"/$pkgname "$pkgdir"/usr/bin/$pkgname install -m755 -D "$srcdir"/"$pkgname-$pkgver"/$pkgname "$pkgdir"/usr/bin/$pkgname
mkdir -p "$pkgdir"/usr/share/antiword mkdir -p "$pkgdir"/usr/share/antiword
install -m644 -D "$srcdir"/"$pkgname-$pkgver"/Resources/* "$pkgdir"/usr/share/antiword/ install -m644 -D "$srcdir"/"$pkgname-$pkgver"/Resources/* "$pkgdir"/usr/share/antiword/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment