summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa790d20a2d0aba89b38ad321acd84e0ad61830a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Kai Hendry <hendry@iki.fi>
# http://www.goredo.cypherpunks.ru/Install.html

pkgname=goredo
pkgver=0.11.0
pkgrel=1
pkgdesc="Go implementation of djb's redo, a Makefile replacement that sucks less"
url=http://www.goredo.cypherpunks.ru/
arch=('x86_64' 'i686' 'aarch64')
license=('GPL3')

makedepends=('git' 'go>=1.14')

validpgpkeys=('7531BB84FAF0BF35960C63B93A528DDE952C7E93')
source=("${url}/download/${pkgname}-${pkgver}.tar.zst.sig"
        "${url}/download/${pkgname}-${pkgver}.tar.zst")
sha256sums=('SKIP'
            '4608b75bc8a3dfb62ef305b5eed0f4b28ad39f64ae46baceea8100d90a8666f9')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  export GOPATH=`pwd`
  go build -o "dist/${pkgname}" go.cypherpunks.ru/goredo
}

package() {
  rm -f "${pkgdir}/usr/bin/${pkgname}"
  install -Dm755 "${srcdir}/${pkgname}-${pkgver}/dist/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  cd "${pkgdir}/usr/bin/"
  ./goredo -symlinks
}