aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-conf/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-01-12 08:53:23 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-01-12 08:53:23 +0000
commit1d5e71d35028b9d3af112ad941347bc6c1b510be (patch)
tree386f4c35baffb105e87c8b393a0040f0fc5e1f01 /testing/go-conf/APKBUILD
parent36ed2142f0a2b4ba3588b9961da40c7446c394ca (diff)
downloadaports-1d5e71d35028b9d3af112ad941347bc6c1b510be.tar.bz2
aports-1d5e71d35028b9d3af112ad941347bc6c1b510be.tar.xz
testing/go-conf: modernize APKBUILD, update license, disable check(), fix doc subpkg
Take maintainership
Diffstat (limited to 'testing/go-conf/APKBUILD')
-rw-r--r--testing/go-conf/APKBUILD35
1 files changed, 13 insertions, 22 deletions
diff --git a/testing/go-conf/APKBUILD b/testing/go-conf/APKBUILD
index fd06a6f539..827b8c17f2 100644
--- a/testing/go-conf/APKBUILD
+++ b/testing/go-conf/APKBUILD
@@ -1,46 +1,37 @@
-# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
-# Maintainer:
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=go-conf
-_realname=goconf
+_pkgname=goconf
_vendor=dlintw
pkgver=0_git20170102
pkgrel=1
pkgdesc="goconf package - fork from http://code.google.com/p/goconf/"
-url="https://github.com/$_vendor/$_realname"
+url="https://github.com/$_vendor/$_pkgname"
arch="noarch"
-license="Custom"
-depends=
-depends_dev=
-makedepends="$depends_dev"
-install=
+license="BSD-3-Clause"
subpackages="$pkgname-doc"
-source="http://dev.alpinelinux.org/archive/$_realname/$_realname-$pkgver.tar.gz"
-builddir="$srcdir"/$_realname-$pkgver
-
-giturl="https://github.com/dlintw/$_realname.git"
-disturl="larena@dev.alpinelinux.org:/archive/$_realname/$_realname-$pkgver.tar.gz"
-
-prepare() {
- cd "$builddir"
-}
+options="!check"
+source="http://dev.alpinelinux.org/archive/$_pkgname/$_pkgname-$pkgver.tar.gz"
+giturl="https://github.com/dlintw/$_pkgname.git"
+disturl="larena@dev.alpinelinux.org:/archive/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$builddir"
+ return 0
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \
- "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_realname
+ "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_pkgname
for file in \
LICENSE \
- README.md \
+ README.* \
COPYRIGHT \
AUTHORS \
; do \
test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$pkgname
done
- mv * "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_realname || return 1
+ mv *.go "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_pkgname
}
md5sums="9209a3e0b10675898c3228348e6caa3d goconf-0_git20170102.tar.gz"