mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Maintainer: Antonio Rojas <nqn1976 @ gmail.com>
|
|
# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov
|
|
|
|
plugrel=1
|
|
|
|
pkgname=owncloud
|
|
pkgver=3.0.2
|
|
pkgrel=1
|
|
pkgdesc="A cloud server to store your files centrally on a hardware controlled by you"
|
|
arch=('any')
|
|
url="http://owncloud.org/"
|
|
license=('GPL')
|
|
depends=('php-apache' 'php-gd')
|
|
optdepends=("php-sqlite: to use the SQLite database backend" "mysql: to use the MySQL database backend")
|
|
makedepends=()
|
|
source=("http://owncloud.org/releases/$pkgname-$pkgver.tar.bz2" 'owncloud.conf')
|
|
install=owncloud.install
|
|
md5sums=('25945bb7167767a71c7e9302d42355a5'
|
|
'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/
|
|
}
|
|
|
|
|
|
|