diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 15 insertions, 21 deletions
@@ -1,20 +1,14 @@ pkgbase = longcat - pkgdesc = Creates a loooonng cat in the terminal - pkgver = r113.f0ff33e + pkgdesc = Creates a looooong cat in the terminal + pkgver = v0.0.4 pkgrel = 2 url = https://github.com/mattn/longcat - arch = i686 - arch = pentium4 - arch = x86_64 - arch = arm - arch = armv7h - arch = armv6h - arch = aarch64 + arch = any license = MIT makedepends = go + makedepends = git depends = glibc - source = longcat::git://github.com/mattn/longcat.git + source = longcat::git+https://github.com/mattn/longcat.git#tag=v0.0.4 md5sums = SKIP pkgname = longcat - @@ -1,29 +1,29 @@ # Maintainer: Charlie Ringström <c.ringstrom@gmail.com> pkgname='longcat' -pkgver=r117.62bfdec +pkgver=v0.0.4 pkgrel=2 -pkgdesc="Creates a loooonng cat in the terminal" -arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') +pkgdesc="Creates a looooong cat in the terminal" +arch=('any') url="https://github.com/mattn/longcat" license=('MIT') depends=('glibc') -makedepends=('go') +makedepends=('go' 'git') #changelog="Initial release" -source=("longcat::git://github.com/mattn/longcat.git") +source=("longcat::git+https://github.com/mattn/longcat.git#tag=$pkgver") md5sums=('SKIP') pkgver() { - cd "$pkgname" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$pkgname" + git describe --tags } build() { cd "$pkgname" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" go build -o longcat } |