PKGBUILDs/aur/owncloud/PKGBUILD
2012-02-01 15:10:57 -05:00

38 lines
1.1 KiB
Bash

# Maintainer: A Rojas <nqn1976 @ gmail.com>
# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov
plugrel=1
pkgname=owncloud
pkgver=3.0.0
pkgrel=1
pkgdesc="A cloud server to store your files centrally on a hardware controlled by you"
arch=('i686' 'x86_64')
url="http://owncloud.org/"
license=('GPL')
depends=('php-apache' 'php-sqlite')
makedepends=()
source=("http://owncloud.org/releases/${pkgname}-${pkgver}.tar.bz2" 'owncloud.conf')
install=owncloud.install
md5sums=('0a48bf2b1ac10c11c4b7f6fd1de9a5d9'
'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/
}