Package Details: pwninit-bin 2.2.0-0

Git Clone URL: https://aur.archlinux.org/pwninit-bin.git (read-only, click to copy)
Package Base: pwninit-bin
Description: pwninit - automate starting binary exploit challenges. Pre-compiled.
Upstream URL: https://github.com/io12/pwninit
Licenses: MIT
Conflicts: pwninit
Provides: pwninit
Submitter: blevy
Maintainer: blevy
Last Packager: blevy
Votes: 0
Popularity: 0.000000
First Submitted: 2019-11-17 08:05
Last Updated: 2020-02-14 07:29

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

orhun commented on 2020-10-20 09:55

  • pkgdesc should not self-reference. Consider removing pwninit - from it.
  • pkgrel should be 1.
  • Consider installing README.md and LICENSE (since it's MIT) along with the binary.

PKGBUILD:

# Maintainer: Benjamin Levy <blevy@protonmail.com>
pkgname=pwninit-bin
pkgver=2.2.0
pkgrel=1
provides=('pwninit')
conflicts=('pwninit')
depends=('elfutils')
arch=('x86_64')
pkgdesc="Automate starting binary exploit challenges."
license=('MIT')
url="https://github.com/io12/pwninit"
source=("${pkgname}-${pkgver}::${url}/releases/download/${pkgver}/pwninit"
        "${pkgname}-$pkgver-LICENSE::$url/raw/$pkgver/LICENSE"
        "${pkgname}-$pkgver-README.md::$url/raw/$pkgver/README.md")
sha256sums=('ac2984416f41790367759bb4c0f2a10653d7b4a31264291f71ab3199a321795e'
            '99dce9273c26ee94572b9fe715d449a300dbcc8d5914285cf3cb31110ca92019'
            '6e41b0da12f548bd88a9fc2493ad6ecf70150f8613f949c9548d9beb0ef91e1b')

package() {
  install -Dm 755 "${pkgname}-${pkgver}" -T "${pkgdir}/usr/bin/pwninit"
  install -Dm 644 "${pkgname}-$pkgver-README.md" -T "$pkgdir/usr/share/doc/${pkgname%-bin}/README.md"
  install -Dm 644 "${pkgname}-$pkgver-LICENSE" -T "$pkgdir/usr/share/licenses/${pkgname%-bin}/LICENSE"
}