summaryrefslogtreecommitdiff
path: root/social/statusnet
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-14 14:09:22 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-14 14:09:22 -0300
commit03901c8c7a8f69748a75ee9c8481ee497e5323c3 (patch)
treed9f1853c02bbf08a69df772bfe3822eebcf720a9 /social/statusnet
parent24f320df6ca67f2dba68f9f68ccd98a7d9e60917 (diff)
downloadabslibre-03901c8c7a8f69748a75ee9c8481ee497e5323c3.tar.gz
abslibre-03901c8c7a8f69748a75ee9c8481ee497e5323c3.tar.bz2
abslibre-03901c8c7a8f69748a75ee9c8481ee497e5323c3.zip
social/statusnet-0.9.9-1
Nicer plugin and locale finding
Diffstat (limited to 'social/statusnet')
-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')