diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 14:53:05 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 15:22:00 +0000 |
commit | 0ee93b42bad077b22aa8d90a505c87654c8f54d6 (patch) | |
tree | 5b5d530ac69e6918c87182ccb9237fc77c6b168d /testing/go-mux | |
parent | c97a7c5d87b5144cbe3b178aa49278c75a7bb2b8 (diff) | |
download | aports-0ee93b42bad077b22aa8d90a505c87654c8f54d6.tar.bz2 aports-0ee93b42bad077b22aa8d90a505c87654c8f54d6.tar.xz |
testing/go-mux: new aport
A powerful URL router and dispatcher for golang
Diffstat (limited to 'testing/go-mux')
-rw-r--r-- | testing/go-mux/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/go-mux/APKBUILD b/testing/go-mux/APKBUILD new file mode 100644 index 0000000000..1b4c4e46c2 --- /dev/null +++ b/testing/go-mux/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=go-mux +_realname=mux +_vendor=gorilla +pkgver=1.1 +pkgrel=0 +pkgdesc="A powerful URL router and dispatcher for golang" +url="http://www.gorillatoolkit.org" +arch="noarch" +license="Custom" +depends= +depends_dev= +makedepends="$depends_dev" +install= +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/gorilla/$_realname/archive/v$pkgver.tar.gz" +builddir="$srcdir"/$_realname-$pkgver + +prepare() { + cd "$builddir" +} + +build() { + cd "$builddir" +} + +package() { + cd "$builddir" + mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \ + "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname + for file in \ + LICENSE \ + README.md \ + COPYRIGHT \ + AUTHORS \ + ; do \ + test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$_realname + done + mv * "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname || return 1 +} + +md5sums="6e2b50af81690dd20f08259317ed45c7 go-mux-1.1.tar.gz" +sha256sums="66c6990df41605fd1de54a1d6d4e6460d4c4c00f0ace9fc82f6c2c68b13fb8aa go-mux-1.1.tar.gz" +sha512sums="8610d69ab2cd58e02084f1860a5de152b27d530962a11f4a7fab1b15d404fb3fa3b159df4178853d1b226a5d2a47171bb7121de49ba4dc18d5d3bc6d5c1f26ac go-mux-1.1.tar.gz" |