summaryrefslogtreecommitdiff
path: root/pkgs/statusnet/PKGBUILD
blob: fd3f53c68e2b0695dc33af9c0bedfe045e930a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: fauno <fauno@kiwwwi.com.ar>
pkgname=statusnet
pkgver=0.9.5
pkgrel=1
pkgdesc="StatusNet is a Free and Open Source microblogging platform."
arch=('any')
url="http://status.net"
license=('AGPL')
groups=('social-web')
depends=('php>=5.2.3' 'mysql>=5' 'php-gd' 'php-curl' 'php-gmp')
optdepends=('memcache: for caching database queries'
            'php-xcache: for accelerating PHP code execution')
provides=()
options=()
source=("http://status.net/${pkgname}-${pkgver}.tar.gz"
        statusnet.install)
install=statusnet.install

build() {
  cd "$srcdir/$pkgname-${pkgver}"

  etc_dir="${pkgdir}/etc/webapps/${pkgname}"
  usr_dir="${pkgdir}/usr/share/webapps/${pkgname}"

  install -d ${usr_dir}
  install -d ${etc_dir}
  install -d ${pkgdir}/usr/share/doc/${pkgname}/
  install -d ${pkgdir}/usr/share/licenses/${pkgname}

  install -m644 ./{config.php,htaccess}.sample \
      ${pkgdir}/usr/share/doc/${pkgname}/

  install -m644 ./{README,EVENTS.txt,lighttpd.conf.example} \
      ${pkgdir}/usr/share/doc/${pkgname}/

  install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/

  rm -f *.sample README COPYING README EVENTS.txt *.example

  cp -ra * ${usr_dir}/
  chmod a+w ${usr_dir}/
  chmod a+w ${usr_dir}/{avatar,background,file}
} 
md5sums=('ca4fc694e15c68cf921a9c2578988770'
         '6f3de28ccb1385123bdf0eb66a78a875')
md5sums=('ca4fc694e15c68cf921a9c2578988770'
         '24991580625ec177c144ed5acdbe6dbc')