summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorkpcyrd2018-10-05 06:38:06 +0200
committerkpcyrd2018-10-05 06:38:06 +0200
commit0210114c3e4a5c6fc941059e9a3ca84afa6db583 (patch)
treec18b3456a62c3bd6b7245c4c66c3770ab169b24a /PKGBUILD
downloadaur-0210114c3e4a5c6fc941059e9a3ca84afa6db583.tar.gz
v0.1.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..2652a9d15ff6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: kpcyrd <git@rxv.cc>
+
+_gitname=sn0int
+pkgname=sn0int-git
+pkgver=0.1.0.r1.ga1448ed
+pkgrel=1
+pkgdesc="OSINT framework and package manager"
+url="https://github.com/kpcyrd/sn0int"
+depends=('libcap' 'sqlite' 'libseccomp')
+makedepends=('cargo' 'git')
+provides=('sn0int')
+conflicts=('sn0int')
+arch=('i686' 'x86_64' 'armv6h' 'aarch64')
+license=('GPL3')
+install='sn0int.install'
+source=("git+https://github.com/kpcyrd/$_gitname.git")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "$_gitname"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$_gitname"
+ cargo build --release --locked
+}
+
+check() {
+ cd "$_gitname"
+ cargo test --release --locked
+}
+
+package() {
+ cd "$_gitname"
+ install -Dm755 "target/release/$_gitname" -t "$pkgdir/usr/bin"
+ install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$_gitname"
+}
+
+# vim:set ts=2 sw=2 et: