aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-08 17:56:24 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-08 23:57:58 +0000
commit32f2fbbd08d6da2be657102f62ee69d3fb000406 (patch)
tree901af2e6cb7e4c1fb96e703c554e5539b6fbff89
parent9e84d5d9db35bca9818e5525569fcdc9dec73950 (diff)
downloadaports-32f2fbbd08d6da2be657102f62ee69d3fb000406.tar.bz2
aports-32f2fbbd08d6da2be657102f62ee69d3fb000406.tar.xz
community/antiword: modernize
-rw-r--r--community/antiword/APKBUILD25
1 files changed, 5 insertions, 20 deletions
diff --git a/community/antiword/APKBUILD b/community/antiword/APKBUILD
index c16627021f..4f6d407178 100644
--- a/community/antiword/APKBUILD
+++ b/community/antiword/APKBUILD
@@ -2,36 +2,21 @@
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=antiword
pkgver=0.37
-pkgrel=3
+pkgrel=4
pkgdesc="A free MS Word reader"
+options="!check" # No testsuite
url="http://www.winfield.demon.nl"
arch="all"
-license="GPL-2.0"
-depends=""
-makedepends=""
-install=""
-subpackages=""
-source="http://www.winfield.demon.nl/linux/$pkgname-$pkgver.tar.gz
+license="GPL-2.0-only"
+source="http://www.winfield.demon.nl/linux/antiword-$pkgver.tar.gz
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() {
- cd "$_builddir"
- make || return 1
+ make OPT="-Os"
}
package() {
- cd "$_builddir"
install -m755 -D "$srcdir"/"$pkgname-$pkgver"/$pkgname "$pkgdir"/usr/bin/$pkgname
mkdir -p "$pkgdir"/usr/share/antiword
install -m644 -D "$srcdir"/"$pkgname-$pkgver"/Resources/* "$pkgdir"/usr/share/antiword/