updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / myupb / PKGBUILD
blob618314a28c110e3ea7aa59a25d7082f5e960ea15
1 # Maintainer: Adrien Dadouchi <messenger@purogurama.com>
2 # Contributor: Adrien Dadouchi <messenger@purogurama.com>
3 pkgname=myupb
4 pkgver=2.2.6
5 pkgrel=13
6 pkgdesc="Simple and lightweight PHP forum (without SQL!)."
7 arch=(any)
8 url="http://www.myupb.com"
9 license=('custom:CC BY-NC-SA')
10 groups=
11 provides=
12 depends=('php')
13 optdepends=()
14 makedepends=('patch')
15 conflicts=
16 replaces=
17 backup=
18 install=('myupb.install')
19 source=(http://downloads.sourceforge.net/project/textmb/UPB/UPB%202.2.6/upb2.2.6.zip patch.diff)
20 md5sums=(6168ad7e203f9b60677a8537b04dece8 902bc39070d37b91e42eeb914cd8cce1)
22 build() {
23         patch -p1 -d $srcdir < $srcdir/patch.diff
24         mkdir -p $pkgdir/usr/share/webapps/myupb/
25         mkdir -p $pkgdir/usr/share/licenses/myupb/
26         cp $srcdir/license.txt $pkgdir/usr/share/webapps/myupb/
27         cp $srcdir/license.txt $pkgdir/usr/share/licenses/myupb/COPYING
28         cp $srcdir/readme.txt $pkgdir/usr/share/webapps/myupb/
29         cp $srcdir/*.php $pkgdir/usr/share/webapps/myupb/
30         cp -r $srcdir/{backup,images,includes,skins,smilies} $pkgdir/usr/share/webapps/myupb/
31         chmod 0777 -R $pkgdir/usr/share/webapps/myupb/
32         touch $pkgdir/usr/share/webapps/myupb/config.php
33         chmod 0666 $pkgdir/usr/share/webapps/myupb/config.php