PKGBUILDs/aur/owncloud/PKGBUILD

40 lines
1.1 KiB
Bash
Raw Normal View History

2012-04-15 17:02:27 +00:00
# Maintainer: Antonio Rojas <nqn1976 @ gmail.com>
2011-05-17 21:54:33 +00:00
# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov
plugrel=1
pkgname=owncloud
2012-04-15 17:02:27 +00:00
pkgver=3.0.2
2011-05-17 21:54:33 +00:00
pkgrel=1
pkgdesc="A cloud server to store your files centrally on a hardware controlled by you"
2012-04-15 17:02:27 +00:00
arch=('any')
2011-12-07 21:42:15 +00:00
url="http://owncloud.org/"
2011-05-17 21:54:33 +00:00
license=('GPL')
2012-04-15 17:02:27 +00:00
depends=('php-apache' 'php-gd')
optdepends=("php-sqlite: to use the SQLite database backend" "mysql: to use the MySQL database backend")
2011-05-17 21:54:33 +00:00
makedepends=()
2012-04-15 17:02:27 +00:00
source=("http://owncloud.org/releases/$pkgname-$pkgver.tar.bz2" 'owncloud.conf')
2011-05-17 21:54:33 +00:00
install=owncloud.install
2012-04-15 17:02:27 +00:00
md5sums=('25945bb7167767a71c7e9302d42355a5'
2011-05-17 21:54:33 +00:00
'b22b1f45421a13b772dd0b7617e62c83')
# build()
package() {
# install README file
2012-04-15 17:02:27 +00:00
install -o root -g root -d $pkgdir/usr/share/doc/$pkgname
mv $srcdir/$pkgname/README $pkgdir/usr/share/doc/$pkgname/
2011-05-17 21:54:33 +00:00
# install project
2012-04-15 17:02:27 +00:00
install -d -o http -g http $pkgdir/srv/http
cp -a $srcdir/$pkgname $pkgdir/srv/http/
chown -R http:http $pkgdir/srv/http/*
2011-05-17 21:54:33 +00:00
# install apache .conf file
2012-04-15 17:02:27 +00:00
install -d -o root -g root $pkgdir/etc/httpd/conf/extra
install -o root -g root -m 644 $srcdir/owncloud.conf $pkgdir/etc/httpd/conf/extra/
2011-05-17 21:54:33 +00:00
}