summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab1ab90165e54369b4b39216e17fa9239e773b34 (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=pss-git
pkgver=1.42
pkgrel=1
epoch=
pkgdesc="A power-tool for searching inside source code files."
arch=('i686' 'x86_64')
url="https://github.com/eliben/pss"
license=('BSD')
groups=()
depends=('python2')
makedepends=('git')
optdepends=()
checkdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
changelog=
install=
source=("$pkgname::git+https://github.com/eliben/pss.git")
noextract=()
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//g'
}

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