blob: 046ac54bc3841d379ee1971bf98e111ca68ce50f (
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
|
# Maintainer: Dan Yeomans <dan@dyeo.net>
pkgname=rxargs-git
pkgver=0.3.0.r0.b636432
pkgrel=1
pkgdesc="Regex argument substitution for command-line wizardry"
arch=('x86_64')
url="https://github.com/dyeo/rxargs"
license=('MIT')
depends=('python')
makedepends=('git' 'python-setuptools')
optdepends=()
provides=('rxargs')
source=('git+https://github.com/dyeo/rxargs.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${pkgname%-git}"
python setup.py build
}
package() {
cd "$srcdir/${pkgname%-git}"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 "man/rxargs.1" "$pkgdir/usr/share/man/man1/rxargs.1"
}
|