summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65046eb3d1c29172f36c9090bf37b6cdefad30ea (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer  : Kr1ss $(echo \<kr1ss+x-yandex+com\>|sed s/\+/./g\;s/\-/@/)
# Contributor : GI_Jack <GI_Jack@hackermail.com>


pkgname=karma-git
_pkgname=karma

epoch=1
pkgver() { git -C "$_pkgname" describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g'; }
pkgver=1.2.0.r10.7cddd82
pkgrel=2

pkgdesc='Search of Emails and Passwords on Pwndb'
arch=('any')
url="https://github.com/decoxviii/$_pkgname"
license=('MIT')

makedepends=('git')
depends=('tor' 'python-docopt' 'python-requests' 'python-pysocks' 'python-texttable')

provides=("$_pkgname")
conflicts=("$_pkgname")

source=("git+$url.git")
sha256sums=('SKIP')


prepare() {
  cd "$_pkgname"
  sed -i 's/\(karma\)\.py/\1/g' "bin/$_pkgname"
}

build() {
  cd "$_pkgname"
  python setup.py build
}

check() {
  cd "$_pkgname"
  python setup.py check
}

package() {
  cd "$_pkgname"
  python setup.py install --optimize=1 --skip-build --root="$pkgdir"
  install -Dm644 README.md -t"$pkgdir/usr/share/doc/$_pkgname/"
  install -Dm644 LICENSE -t"$pkgdir/usr/share/licenses/$_pkgname/"
}


# vim: ts=2 sw=2 et ft=PKGBUILD: