blob: 123c3f7e246c58c826b618199d6123b419aa2070 (
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
|
# Maintainer: Ahmad Hasan Mubashshir <ahmubashshir@gmail.com>
# from: git
pkgname=hsandbox-git
pkgver=1.1.r29.gbf81769
pkgrel=1
pkgdesc="The Hacking Sandbox"
arch=('any')
url="http://labix.org/hsandbox"
license=('unknown')
depends=('python' 'python-pyinotify')
makedepends=('git')
provides=('hsandbox')
source=("$pkgname::git+https://github.com/niemeyer/hsandbox")
sha256sums=('SKIP')
pkgver()
{
cd "$srcdir/$pkgname"
( set -o pipefail
git describe --tags --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build()
{
2to3 -w -n "$srcdir/$pkgname/hsandbox" > /dev/null
}
package() {
install -Dm755 "$srcdir/$pkgname/hsandbox" "$pkgdir/usr/bin/hsandbox"
}
|