Package Details: pwninit 2.2.0-0

Git Clone URL: https://aur.archlinux.org/pwninit.git (read-only, click to copy)
Package Base: pwninit
Description: pwninit - automate starting binary exploit challenges
Upstream URL: https://github.com/io12/pwninit
Licenses: MIT
Provides: pwninit
Submitter: blevy
Maintainer: blevy
Last Packager: blevy
Votes: 1
Popularity: 0.006543
First Submitted: 2019-11-03 04:46
Last Updated: 2020-02-14 07:25

Latest Comments

orhun commented on 2020-10-20 09:43

  • provides=('pwninit') is unnecessary. Package already provides itself.
  • You can remove rust from makedepends. It's provided by cargo.
  • Package description should not self-reference. Consider removing pwninit - from it.
  • The downloaded source filename must be unique. It must be something like following:
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/io12/${pkgname}/archive/${pkgver}.tar.gz")
  • You don't need to use ${srcdir} in functions.
  • Consider installing README.md and LICENSE (since it's MIT) as well.
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"

PKGBUILD:

# Maintainer: Benjamin Levy <blevy@protonmail.com>
pkgname=pwninit
pkgver=2.2.0
pkgrel=0
depends=('elfutils')
makedepends=('cargo')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="automate starting binary exploit challenges"
license=('MIT')
url="https://github.com/io12/pwninit"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/io12/${pkgname}/archive/${pkgver}.tar.gz")
md5sums=('6c7777c8aaf7c53d0f54f25a72c72e8e')

build() {
  cd "${pkgname}-${pkgver}"
  cargo build --release --locked
}

check() {
  cd "${pkgname}-${pkgver}"
  cargo test --release --locked
}

package() {
  cd "${pkgname}-${pkgver}"
  install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}