summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Anderson2021-12-22 16:22:43 -0500
committerSean Anderson2021-12-22 16:22:43 -0500
commitef4583193c3adc2824eb1fbab3758cb142f7e2bf (patch)
tree02dccdaa5ba0b6abf50f13d1e79a21b19d80bafe
downloadaur-ef4583193c3adc2824eb1fbab3758cb142f7e2bf.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD36
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d3e50e573ce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = dh-golang
+ pkgdesc = debhelper add-on for packaging software written in Go
+ pkgver = 1.53
+ pkgrel = 1
+ url = https://salsa.debian.org/go-team/packages/dh-golang
+ arch = any
+ license = GPL
+ makedepends = perl-module-install
+ depends = perl>=5.10.0
+ depends = debhelper
+ depends = dpkg
+ options = !emptydirs
+ source = https://salsa.debian.org/go-team/packages/dh-golang/-/archive/debian/1.53/dh-golang-debian-1.53.tar.bz2
+ sha512sums = c17496c68c48e6d792bfef9d83aeb147be3f5cfc9e28ff746dbe584983905257925483a7323eb72a1119abc48a7a13fe114e82b9c2f55772c4a3379d8f3d5d51
+
+pkgname = dh-golang
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6970a401b85
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Sean Anderson <seanga2@gmail.com>
+
+pkgname=dh-golang
+pkgver=1.53
+pkgrel=1
+pkgdesc="debhelper add-on for packaging software written in Go"
+arch=('any')
+url="https://salsa.debian.org/go-team/packages/dh-golang"
+license=('GPL')
+groups=()
+depends=('perl>=5.10.0' debhelper dpkg)
+makedepends=(perl-module-install)
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=(!emptydirs)
+install=
+source=("$url/-/archive/debian/$pkgver/$pkgname-debian-$pkgver.tar.bz2")
+sha512sums=('c17496c68c48e6d792bfef9d83aeb147be3f5cfc9e28ff746dbe584983905257925483a7323eb72a1119abc48a7a13fe114e82b9c2f55772c4a3379d8f3d5d51')
+
+build() {
+ cd "$srcdir/$pkgname-debian-$pkgver"
+
+ # Install module in vendor directories.
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-debian-$pkgver"
+
+ make install DESTDIR="$pkgdir/"
+}
+
+# vim:set ts=2 sw=2 et: