diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cbf1715cde44 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = dh-make-golang + pkgdesc = debianize go library packages + pkgver = 0.0git20150727.0.3f59ff12f2 + pkgrel = 1 + url = https://github.com/Debian/dh-make-golang + arch = x86_64 + arch = i686 + license = BSD + makedepends = go + options = !strip + options = !emptydirs + source = git+https://github.com/Debian/dh-make-golang.git#commit=3f59ff12f284fea0c66b81062a02f34cb0992061 + source = http://ftp.debian.org/debian/pool/main/d/dh-make-golang/dh-make-golang_0.0~git20150726.0.fc4210a-1.debian.tar.xz + sha256sums = SKIP + sha256sums = 048e1ea8219781b6ae37ce9373605e9b9ce7ad847e6f231f9b1198ebeca50440 + +pkgname = dh-make-golang + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..46b892206bbf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: C. Dominik Bódi <dominik dot bodi at gmx dot de> + +pkgname=dh-make-golang +pkgver=0.0git20150727.0.3f59ff12f2 +pkgrel=1 +pkgdesc="debianize go library packages" +arch=('x86_64' 'i686') +url=https://github.com/Debian/dh-make-golang +license=('BSD') +makedepends=('go') +options=('!strip' '!emptydirs') +source=( + "git+https://github.com/Debian/dh-make-golang.git#commit=3f59ff12f284fea0c66b81062a02f34cb0992061" + "http://ftp.debian.org/debian/pool/main/d/dh-make-golang/dh-make-golang_0.0~git20150726.0.fc4210a-1.debian.tar.xz" + ) +sha256sums=('SKIP' + '048e1ea8219781b6ae37ce9373605e9b9ce7ad847e6f231f9b1198ebeca50440') + +prepare() { + + export GOPATH="$srcdir" + go get github.com/russross/blackfriday + go get golang.org/x/net/publicsuffix + go get golang.org/x/tools/go/vcs + +} + +build() { + cd "$pkgname" + + GOPATH="$srcdir" go build + +} + +package() { + cd "$pkgname" + + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + cd "$srcdir/debian" + install -Dm644 man/dh-make-golang.1 "$pkgdir/usr/share/man/man1/dh-make-golang.1" + +} |