diff options
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 12 insertions, 21 deletions
@@ -1,16 +1,13 @@ -# Generated by mksrcinfo v8 -# Wed Jan 16 11:27:01 UTC 2019 pkgbase = teaftp pkgdesc = Simple, read-only TFTP server - pkgver = 1.1.1 + pkgver = 1.3.0 pkgrel = 1 url = https://github.com/xyproto/teaftp arch = x86_64 - license = MIT + license = BSD makedepends = git makedepends = go - source = git+https://github.com/xyproto/teaftp#tag=v1.1.1 - md5sums = SKIP + source = git+https://github.com/xyproto/teaftp#commit=27e21c589f95d823c60d0079d02246a3bfcb314f + b2sums = SKIP pkgname = teaftp - @@ -1,29 +1,23 @@ # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org> pkgname=teaftp -pkgver=1.1.1 +pkgver=1.3.0 pkgrel=1 pkgdesc='Simple, read-only TFTP server' arch=(x86_64) url='https://github.com/xyproto/teaftp' -license=(MIT) +license=(BSD) makedepends=(git go) -source=("git+$url#tag=v$pkgver") -md5sums=('SKIP') +source=("git+$url#commit=27e21c589f95d823c60d0079d02246a3bfcb314f") # tag: v1.3.0 +b2sums=(SKIP) build() { - cd "$pkgname" - - export GO111MODULE=off - go get -d - go build -buildmode=pie + cd $pkgname + go build -buildmode=pie -ldflags="-s -w -extldflags \"${LDFLAGS}\"" -mod=vendor -trimpath -v } package() { - cd "$pkgname" - - install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + cd $pkgname + install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } - -# vim: ts=2 sw=2 et: |