blob: 1d4f5d8b728e2c766f1e388e9d019ccf9431674c (
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
|
# Maintainer: James An <james@jamesan.ca>
_pkgname=creepy
pkgname=python2-$_pkgname-git
pkgver=r25.dece1aa
pkgrel=1
pkgdesc="Dead simple web crawler for Python"
arch=('any')
url="https://github.com/Aitjcize/$_pkgname"
license=('GPL')
depends=('python2')
makedepends=('git')
options=(!emptydirs)
source=("$_pkgname::git+https://github.com/aitjcize/$_pkgname.git")
md5sums=('SKIP')
package() {
cd "$srcdir/$_pkgname"
python2 setup.py install --root="$pkgdir/" --optimize=1
}
pkgver() {
cd "$srcdir/$_pkgname"
( set -o pipefail
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
|