updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / owncloud-git / PKGBUILD
blob8941d172fc319ef2ac3ff9b5a8fc84c91bec8ae4
1 # Contributor: Alexander Ovsyannikov <ovsinc at ya.ru>
2 pkgname=owncloud-git
3 pkgver=20111026
4 pkgrel=1
5 pkgdesc="ownCloud is part of the Social Desktop, a project connecting you with your peers in the community"
6 arch=('i686' 'x86_64')
7 url="http://owncloud.org/index.php/Main_Page"
8 license=('GPL')
9 depends=('php-apache' 'mysql')
10 optdepends=('phpmyadmin: A PHP and hence web-based tool to administrate MySQL over the WWW'
11             'php-curl: for using curl module for PHP')
12 install=owncloud.install
13 makedepends=()
14 provides=()
15 source=(owncloud.conf)
16 backup=('etc/httpd/conf/extra/owncloud.conf')
17 _gitroot="git://gitorious.org/owncloud/owncloud.git"
18 _gitname="owncloud"
19 options=('!strip')
21 build() {
22 cd "$srcdir"
23 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25     rm -rf $_gitname
26     git clone --depth=1 $_gitroot $_gitname
27 else
28     git clone --depth=1 $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
32 msg "Building and installing..." 
34 # install README file 
35   install -d ${pkgdir}/usr/share/doc/owncloud1.0
36   mv ${srcdir}/${_gitname}/README  ${pkgdir}/usr/share/doc/owncloud1.0/
38   # clean .git directory
39   rm -rf ${srcdir}/${_gitname}/.git
41 # install project  
42   install -d  ${pkgdir}/usr/share/webapps/ || return 1
43   cp -a ${srcdir}/${_gitname}  ${pkgdir}/usr/share/webapps/ || return 1
44   # 33 - is GID 'http' group and UID 'http' user 
45   chown -R 33:33 ${pkgdir}/usr/share/webapps/owncloud || return 1 
47 # install apache .conf file 
48   install -d ${pkgdir}/etc/httpd/conf/extra || return 1
49   install -m 644 ${srcdir}/owncloud.conf  ${pkgdir}/etc/httpd/conf/extra/ || return 1
52 md5sums=('c0112de94a7d9bdb7b5d1705a344db81')