Package Details: tufw-git 0.2.2-1

Git Clone URL: https://aur.archlinux.org/tufw-git.git (read-only, click to copy)
Package Base: tufw-git
Description: Terminal UI for ufw
Upstream URL: https://github.com/peltho/tufw
Licenses: MIT
Conflicts: tufw
Provides: tufw
Submitter: peltho
Maintainer: peltho
Last Packager: peltho
Votes: 1
Popularity: 0.000000
First Submitted: 2022-12-13 09:05 (UTC)
Last Updated: 2024-01-21 09:59 (UTC)

Latest Comments

ak2021 commented on 2023-02-27 08:43 (UTC) (edited on 2023-03-25 12:21 (UTC) by ak2021)

Doesn't download the package. I managed to install it by converting the deb file using debtap.

--Edit--

Finally, this worked

pkgname=tufw-git
_pkgname=tufw
pkgver=v0.1.0.r2.g7ef8c33
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/peltho/$_pkgname"
source=("git+${url}")
depends=('ufw')
makedepends=('go')
sha1sums=('SKIP')
pkgdesc="Terminal UI for ufw"
license=('MIT')

pkgver() {
  cd "$srcdir/$_pkgname"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build(){
  cd "$srcdir/$_pkgname"
  GO111MODULE=on go build -o "$srcdir/bin/tufw" "./cmd/..."
}

package() {
  cd "$srcdir/bin"
  install -Dm755 'tufw' "$pkgdir/usr/bin/tufw"
}