# Contributor: Leonardo Arena # Maintainer: setvar pkgname = 'go-sloth' setvar _realname = 'sloth' setvar _vendor = ""strukturag"" setvar pkgver = '0.9.2' setvar pkgrel = '0' setvar pkgdesc = ""A tiny REST framework for Go"" setvar url = ""https://github.com/$_vendor/$_realname"" setvar arch = ""noarch"" setvar license = ""Custom"" setvar depends = '' setvar depends_dev = '' setvar makedepends = "$depends_dev" setvar install = '' setvar subpackages = ""$pkgname-doc"" setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_realname/archive/v$pkgver.tar.gz"" setvar builddir = ""$srcdir"/${_realname}-$pkgver" proc prepare { cd $builddir } proc build { cd $builddir } proc 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 \ { \ test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$pkgname } mv * "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname || return 1 } setvar md5sums = ""4a40690a4ca65f65f452007a57c26a64 go-sloth-0.9.2.tar.gz"" setvar sha256sums = ""4a4757d85eae8d84b5da1579267b2f80ffd38044db665718b5b6522c9748de5c go-sloth-0.9.2.tar.gz"" setvar sha512sums = ""2d7550e2cd0f7ae259567a5611886bb70132ca0bf5fc7e85f80f6cb31233cc45120cd8feb862666f31b43fd95de83713e7cfc38687074ea6659b9dd6dbd08332 go-sloth-0.9.2.tar.gz""