PKGBUILDs/aur/owncloud/PKGBUILD

39 lines
1.1 KiB
Bash
Raw Normal View History

2011-05-17 21:54:33 +00:00
# Maintainer: A Rojas <nqn1976 @ gmail.com>
# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov
plugrel=1
pkgname=owncloud
2011-12-07 21:42:15 +00:00
pkgver=2.0.1
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"
arch=('i686' 'x86_64')
2011-12-07 21:42:15 +00:00
url="http://owncloud.org/"
2011-05-17 21:54:33 +00:00
license=('GPL')
2011-12-07 21:42:15 +00:00
depends=('php-apache' 'php-sqlite')
2011-05-17 21:54:33 +00:00
makedepends=()
source=("http://owncloud.org/releases/${pkgname}-${pkgver}.tar.bz2" 'owncloud.conf')
install=owncloud.install
2011-12-07 21:42:15 +00:00
md5sums=('24679dc0a0472f7ca7bba7422fdcf74d'
2011-05-17 21:54:33 +00:00
'b22b1f45421a13b772dd0b7617e62c83')
# build()
package() {
# install README file
install -o root -g root -d ${pkgdir}/usr/share/doc/${pkgname}
mv ${srcdir}/${pkgname}/README ${pkgdir}/usr/share/doc/${pkgname}/
# install project
install -d -o http -g http ${pkgdir}/srv/http
cp -a ${srcdir}/${pkgname} ${pkgdir}/srv/http/
chown -R http:http ${pkgdir}/srv/http/*
# install apache .conf file
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/
}