diff options
author | Christian Muehlhaeuser | 2020-10-04 10:47:34 +0200 |
---|---|---|
committer | Christian Muehlhaeuser | 2020-10-04 10:47:34 +0200 |
commit | 875f84409d7be135a8db0692c118cdb37ae19440 (patch) | |
tree | ed2244a3bb42650949382e4db844b6feb575c192 | |
parent | 46ce60e33e3016249cb2e089b0e7b7e14532f7a5 (diff) | |
download | aur-875f84409d7be135a8db0692c118cdb37ae19440.tar.gz |
Bump to v0.2.2
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 37 insertions, 18 deletions
@@ -1,17 +1,17 @@ pkgbase = mastotool - pkgdesc = a collection of tools to work with your Mastodon account - pkgver = 0.2.1 + pkgdesc = Disk Usage/Free Utility + pkgver = 0.2.2 pkgrel = 1 url = https://github.com/muesli/mastotool arch = x86_64 arch = i686 + arch = armv6h + arch = armv7h + arch = aarch64 license = MIT makedepends = go - options = !strip - options = !emptydirs - options = !makeflags - source = mastotool-0.2.1::git+https://github.com/muesli/mastotool#tag=v0.2.1 - sha256sums = SKIP + source = https://github.com/muesli/mastotool/archive/v0.2.2/mastotool-0.2.2.tar.gz + sha256sums = 0fb625d9a22cf16d348602bd1660d0e1877c047444848f798f272764be2a424c pkgname = mastotool @@ -1,26 +1,45 @@ # Maintainer: Christian Muehlhaeuser <muesli at gmail dot com> pkgname=mastotool -pkgver=0.2.1 +pkgver=0.2.2 pkgrel=1 -pkgdesc="a collection of tools to work with your Mastodon account" -arch=('x86_64' 'i686') +pkgdesc="Disk Usage/Free Utility" +arch=('x86_64' 'i686' 'armv6h' 'armv7h' 'aarch64') url="https://github.com/muesli/mastotool" license=('MIT') makedepends=('go') -options=('!strip' '!emptydirs' '!makeflags') -source=("$pkgname-$pkgver::git+https://github.com/muesli/mastotool#tag=v$pkgver") -sha256sums=('SKIP') +source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha256sums=('0fb625d9a22cf16d348602bd1660d0e1877c047444848f798f272764be2a424c') + +prepare() { + export GOPATH="$srcdir/gopath" + go clean -modcache +} build() { - export GO111MODULE=on - cd "$srcdir"/$pkgname-$pkgver - go build + cd "$pkgname-$pkgver" + + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-X main.Version=$pkgver -linkmode external -extldflags \"${LDFLAGS}\"" \ + -o "$pkgname" . + + go clean -modcache } package() { - # Install binary - install -Dm755 "$pkgname-$pkgver/mastotool" "$pkgdir/usr/bin/mastotool" + cd "$pkgname-$pkgver" + + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim:set ts=4 sw=4 et: |