summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3dd4c8b247789d673f7089475023eebac43b248 (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
# Maintainer: Christos Nouskas <nous at archlinux.us>

pkgname=fu-git
pkgver=r35.47c0867
pkgrel=1
pkgdesc="A simple python2 tool for querying commandlinefu.com"
url="https://github.com/samirahmed/fu"
arch=(any)
license=('MIT')
depends=('python2')
makedepends=('git' 'python2-setuptools')
_gitroot="git+https://github.com/samirahmed"
_gitname="fu"
source=(${_gitname}::${_gitroot}/${_gitname}.git)
sha256sums=(SKIP)

pkgver() {
    cd "${srcdir}/${_gitname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${srcdir}/${_gitname}"
    python2 setup.py -q install --root="${pkgdir}" --optimize=1
}