[arch-commits] Commit in golang-github-nfnt-resize/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Feb 22 20:14:35 UTC 2019


    Date: Friday, February 22, 2019 @ 20:14:34
  Author: felixonmars
Revision: 435326

archrelease: copy trunk to community-any

Added:
  golang-github-nfnt-resize/repos/community-any/
  golang-github-nfnt-resize/repos/community-any/PKGBUILD
    (from rev 435325, golang-github-nfnt-resize/trunk/PKGBUILD)

----------+
 PKGBUILD |   28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Copied: golang-github-nfnt-resize/repos/community-any/PKGBUILD (from rev 435325, golang-github-nfnt-resize/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-02-22 20:14:34 UTC (rev 435326)
@@ -0,0 +1,28 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-nfnt-resize
+pkgver=0.0.20180222
+_commit=83c6a9932646f83e3267f353373d47347b6036b2
+pkgrel=1
+pkgdesc='Pure golang image resizing'
+arch=('any')
+url="https://github.com/nfnt/resize"
+license=('custom:ISC')
+depends=('go-pie')
+source=("$pkgname-$_commit.tar.gz::https://github.com/nfnt/resize/archive/$_commit.tar.gz")
+sha512sums=('658fe80affcdf5df30009daeb3879406e42c7beb40267a8f3fd55e0522d701cb6db794018fbdd6fb04fc6ee7e464ba612d0aa691867fa6dbe297e29e26b8b298')
+
+check() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/nfnt
+  cp -a "$srcdir"/resize-$_commit "$srcdir"/build/src/github.com/nfnt/resize
+  cd "$srcdir"/build/src/github.com/nfnt/resize
+  go test -v $(go list ./... | grep -v vendor)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/nfnt
+  cp -a "$srcdir"/resize-$_commit "$pkgdir"/usr/share/gocode/src/github.com/nfnt/resize
+
+  install -Dm644 resize-$_commit/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list