summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1542e92e0ef49eb8d60cde0f85f8ede34fb714af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id$
# Maintainer: Fabien Devaux <fdev31 at gmail dot com>

_py=python
_gitname="aury"

pkgname=$_gitname-git
pkgver=20120125
pkgrel=2
pkgdesc="Automates maintenance of AUR python packages"
arch=('any')
url="https://github.com/fdev31/aury.git"
license=('MIT')
depends=($_py "$_py-lxml" "$_py-cssselect" "pkgbuild-introspection" "burp")
makedepends=($_py "git")
conflicts=("$_py-$_gitname")

_gitroot="git://github.com/fdev31/$_gitname.git"

package() {
    cd $srcdir

    msg "Connecting to GIT server..."
    if [[ -d ${_gitname} ]]; then
        (cd ${_gitname} && git pull origin)
    else
        git clone --depth=1 ${_gitroot} ${_gitname}
    fi

    msg "GIT checkout done or server timeout"
    msg "Starting make..."

    rm -rf ${_gitname}-build
    cp -r ${_gitname} ${_gitname}-build

    cd ${srcdir}/${_gitname}-build

    $_py setup.py build || exit 1
    $_py setup.py install --root="${pkgdir}" --optimize=1

    rm -rf ${_gitname}-build
}