summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5da6243b30c23c12429fbee7b9f6ea55cfa0d850 (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
44
45
# Maintainer: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>

_base1_=boto
_base2_=rsync
_appname_=${_base1_}-${_base2_}
_filename_=${_base1_}_${_base2_}
pkgname=python2-${_appname_}
pkgver=0.8.1
pkgrel=1
pkgdesc="An rsync-like utility using boto's S3 and Google Storage interfaces."
url="http://github.com/seedifferently/boto_rsync"
arch=("any")
license=("MIT")
makedepends=("git")
depends=("python2-boto")
source=()

_gitroot="http://github.com/seedifferently/${_filename_}.git"
_gitname="${_filename_}"

build() {
	cd "${srcdir}"

	# Repository
	msg "Connecting to GIT server ..."
	if [ -d "${srcdir}/${_gitname}" ] ; then
		cd ${_gitname} && git pull origin
	else
		git clone "${_gitroot}"
		cd ${_gitname}
	fi

	# Changes
	sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|g' bin/${_appname_}
}

package() {
	cd ${_gitname}

	# Install
	python2 setup.py install -O1 --root="${pkgdir}"

	# License
	install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}