summaryrefslogtreecommitdiff
path: root/social
diff options
context:
space:
mode:
Diffstat (limited to 'social')
-rw-r--r--social/statusnet/PKGBUILD37
1 files changed, 22 insertions, 15 deletions
diff --git a/social/statusnet/PKGBUILD b/social/statusnet/PKGBUILD
index e58240c32..998751df5 100644
--- a/social/statusnet/PKGBUILD
+++ b/social/statusnet/PKGBUILD
@@ -1,25 +1,32 @@
# Contributor: fauno <fauno@kiwwwi.com.ar>
pkgbase=statusnet
+pkgname=statusnet-base
pkgver=0.9.9
# find available plugins and locales
-# tar xf ${pkgbase}-${pkgver}.tar.gz # this isn't optimal but i couldn't trick
-# makepkg to do it by itself
-plugins=($(find ${pkgbase}-${pkgver}/plugins/ -mindepth 1 -maxdepth 1 -type d -printf "%f\n"))
-locales=($(find ${pkgbase}-${pkgver}/locale/ -mindepth 1 -maxdepth 1 -type d -printf "%f\n" ))
-
-pkgname=(statusnet-base
-# plugins
- $(echo ${plugins[@]} | \
- tr [A-Z] [a-z] | tr ' ' "\n" | \
- sed "s/^/statusnet-plugin-/")
-# locales
- $(echo ${locales[@]} | \
- tr [A-Z] [a-z] | tr ' ' "\n" | \
- sed "s/^/statusnet-i18n-/"))
+srcfile=${SRCDEST}/${pkgbase}-${pkgver}.tar.gz
+if [ -e ${srcfile} ]; then
+plugins=($(bsdtar -tf ${srcfile} \
+ ${pkgbase}-${pkgver}/plugins | \
+ cut -d'/' -f3 | sort -u))
+locales=($(bsdtar -tf ${srcfile} \
+ ${pkgbase}-${pkgver}/locale | \
+ cut -d'/' -f3 | sort -u))
+fi
+
+# looping avoids having "statusnet-plugin-" package
+pkgname=(${pkgname}
+ $(for plugin in ${plugins[@]}; do
+ echo ${plugin} | tr [A-Z] [a-z] | \
+ sed "s/^/statusnet-plugin-/"
+ done)
+ $(for locale in ${locales[@]}; do
+ echo ${locale} | tr [A-Z] [a-z] | \
+ sed "s/^/statusnet-i18n-/"
+ done))
pkgrel=1
-pkgdesc="StatusNet is a Free and Open Source microblogging platform."
arch=('any')
+pkgdesc="StatusNet is a Free and Open Source microblogging platform."
url="http://status.net"
license=('AGPL')
depends=('php>=5.2.3' 'mysql>=5' 'php-gd' 'php-curl' 'php-gmp')