blob: 0a5bada5c59487c7979739d020df5be281fc8442 (
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
|
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: Jack O'Connor <oconnor663@gmail.com>
pkgname=peru
pkgver=1.1.2
pkgrel=1
pkgdesc="A tool for fetching code"
arch=('any')
depends=('git' 'python' 'python-docopt' 'python-yaml')
makedepends=('python-setuptools')
optdepends=('mercurial: fetching from hg repos'
'subversion: fetching from svn repos')
url="https://github.com/buildinspace/peru"
license=('MIT')
source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/buildinspace/$pkgname/tar.gz/$pkgver)
sha256sums=('524661173449eb1272b5757ec7eb6fdabda7cf738ae40d3c8bb19b4f43fb951e')
build() {
cd "$srcdir/$pkgname-$pkgver"
msg2 'Building...'
python setup.py build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
msg2 'Installing license...'
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
msg2 'Installing documentation...'
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
cp -dpr --no-preserve=ownership docs/* "$pkgdir/usr/share/doc/$pkgname"
msg2 'Installing...'
python setup.py install --root="$pkgdir" --optimize=1
}
|