diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2618c9b0ff3d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = opensnitch-git + pkgdesc = OpenSnitch is a GNU/Linux port of the Little Snitch application firewall. + pkgver = r90.b594e90 + pkgrel = 1 + url = https://github.com/evilsocket/opensnitch + arch = any + license = GPL3 + makedepends = git + makedepends = python2-setuptools + depends = python2 + depends = python2-pyqt5 + depends = python2-netfilterqueue-git + depends = libnetfilter_queue + depends = scapy + provides = opensnitch + conflicts = opensnitch + source = opensnitch-git::git+https://github.com/evilsocket/opensnitch.git + sha256sums = SKIP + +pkgname = opensnitch-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6d95060869f5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Adam Hose <adis@blad.is> + +pkgbase=opensnitch-git +pkgname=(opensnitch-git) +pkgver=r90.b594e90 +pkgrel=1 +pkgdesc="OpenSnitch is a GNU/Linux port of the Little Snitch application firewall." +arch=(any) +url=https://github.com/evilsocket/${pkgname%-git} +license=(GPL3) +depends=(python2 python2-pyqt5 python2-netfilterqueue-git libnetfilter_queue scapy) +makedepends=(git python2-setuptools) +provides=(${pkgname%-git}) +conflicts=(${pkgname%-git}) +source=($pkgname::git+https://github.com/evilsocket/${pkgname%-git}.git) +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD) +} + +build() { + cd $pkgname + python2 setup.py build +} + +package() { + cd $pkgname + python2 setup.py install --root="$pkgdir" --optimize=1 +} |