diff options
author | 5amu | 2021-02-17 20:15:30 +0100 |
---|---|---|
committer | 5amu | 2021-02-17 20:15:30 +0100 |
commit | 78a2b8973e40ba17e7bc0cbcdc5d37f2b9eb6fe7 (patch) | |
tree | a126161e4035523824e9b189b8f01821f26414e1 | |
parent | 4dbe938fd6eaed06ab63a2449fe5508d467d69bc (diff) | |
download | aur-78a2b8973e40ba17e7bc0cbcdc5d37f2b9eb6fe7.tar.gz |
Bump to vv1.0.1
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 20 insertions, 40 deletions
@@ -1,11 +1,15 @@ pkgbase = searchpoc pkgdesc = Search a PoC for a (or some) given CVE id - pkgver = v0.0.1 - pkgrel = 0 + pkgver = v1.0.1 + pkgrel = 1 url = https://github.com/5amu/searchpoc/ - arch = any + arch = x86_64 license = MIT - depends = python3 + makedepends = python3 + makedepends = nuitka + makedepends = chrpath + source = searchpoc-v1.0.1.tar.gz::https://github.com/5amu/searchpoc/archive/v1.0.1.tar.gz + sha256sums = SKIP pkgname = searchpoc @@ -1,47 +1,23 @@ # Maintainer 5amu <v.casalino@protonmail.com> -pkgbase=searchpoc pkgname=searchpoc -pkgver=v0.0.1 -pkgrel=0 +pkgver=v1.0.1 +pkgrel=1 pkgdesc="Search a PoC for a (or some) given CVE id" url="https://github.com/5amu/searchpoc/" license=('MIT') -_source='https://raw.githubusercontent.com/5amu/searchpoc/v0.0.1/searchpoc.py' -arch=('any') -_md5sum='556b2288b8e95eff0c08413edcceb433' -depends=( - python3 -) +arch=('x86_64') +depends=() +makedepends=('python3' 'nuitka' 'chrpath') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/5amu/searchpoc/archive/${pkgver}.tar.gz") +sha256sums=("SKIP") -prepare() { - cd $srcdir/ - - source_filename=${_source##*/} - if [ ! -f "$source_filename" ]; then - echo "Downloading the python script ..." - curl -A "$source_filename" -O "$_source" - else - echo "Already downloaded!" - fi - - echo "Validating sources ..." - source_expected_md5sum=${_md5sum} - source_actual_md5sum=$(md5sum $source_filename | awk '{print $1}') - - if [ "$source_actual_md5sum" == "$source_expected_md5sum" ]; then - echo "Validated - $source_filename" - else - echo "Corrupted source - $source_filename"; return 1 - fi +build() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR="$pkgdir" PREFIX="/usr" build } -build() { echo;} - package() { - cd $srcdir/ - mkdir -p $pkgdir/usr/bin/ - install -m 0755 $srcdir/${_source##*/} $pkgdir/usr/bin/$pkgname + cd $srcdir/$pkgname-$pkgver + make DESTDIR="$pkgdir" PREFIX="/usr" install } - -#vim: syntax=sh |