aboutsummaryrefslogtreecommitdiffstats
path: root/community/abiword/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/abiword/APKBUILD')
-rw-r--r--community/abiword/APKBUILD12
1 files changed, 4 insertions, 8 deletions
diff --git a/community/abiword/APKBUILD b/community/abiword/APKBUILD
index baba4721e9..52745ebe73 100644
--- a/community/abiword/APKBUILD
+++ b/community/abiword/APKBUILD
@@ -26,7 +26,7 @@ _plugins="applix babelfish bmp clarisworks collab docbook command eml epub \
xslfo"
for _i in $_plugins; do
- subpackages="$subpackages $pkgname-plugin-$_i:plugin_${_i}"
+ subpackages="$subpackages $pkgname-plugin-$_i:_plugin"
done
source="http://www.abisource.com/downloads/$pkgname/$pkgver/source/$pkgname-$pkgver.tar.gz
@@ -51,18 +51,14 @@ package() {
make DESTDIR="$pkgdir" install
}
-_do_plugin() {
- local plugin="$1"
- pkgdesc="Abiword $1 plugin"
+_plugin() {
+ local plugin="${subpkgname#${pkgname}-plugin-}"
+ pkgdesc="Abiword $plugin plugin"
local dir="usr/lib/abiword-${pkgver%.*}/plugins"
mkdir -p "$subpkgdir"/$dir
mv "$pkgdir"/$dir/$plugin.so "$subpkgdir"/$dir/
}
-for _i in $_plugins; do
- eval "plugin_${_i}() { _do_plugin $_i; }"
-done
-
plugins() {
pkgdesc="Abiword plugins, all of them"
depends=