blob: e263e8bb209464f369de96c98ed3c48e04a0ab44 (
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.3.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=('5778f76e83aedc1b01cd77992716a855c134346168a9167c37b8c1ac9c22dfa3')
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
}
|