diff --git a/repos/community-any/PKGBUILD b/repos/community-any/PKGBUILD index 0429463e4..755b3c358 100644 --- a/repos/community-any/PKGBUILD +++ b/repos/community-any/PKGBUILD @@ -9,11 +9,14 @@ arch=('any') url="https://github.com/alecthomas/template" license=('BSD') depends=('go') -source=("$pkgname-$_commit.tar.gz::https://github.com/alecthomas/template/archive/$_commit.tar.gz") -sha512sums=('5ca546170725c3bdd4d9b27ca3976d6dc6376be8db685e6e26cfaef4a51560f78702b7babbe5ed0b2d934d0c32867bc69b11ae757071dc143a4453e6e7ffabdf') +source=("$pkgname-$_commit.tar.gz::https://github.com/alecthomas/template/archive/$_commit.tar.gz" + "$pkgname-add-go-mod.patch::https://github.com/alecthomas/template/pull/6.patch") +sha512sums=('5ca546170725c3bdd4d9b27ca3976d6dc6376be8db685e6e26cfaef4a51560f78702b7babbe5ed0b2d934d0c32867bc69b11ae757071dc143a4453e6e7ffabdf' + '371ea4e7c23bfc6c3895819e4a1b4a4c7d32a34dc31effed7e610bda7125d641f3e23b1d1ac32bc068f63f5c5be86bd458572ffb40291d89e3a6f96c2e429c89') check() { export GOPATH="$srcdir/build:/usr/share/gocode" + patch -d "$srcdir"/template-$_commit -Np1 -i "$srcdir"/$pkgname-add-go-mod.patch mkdir -p "$srcdir"/build/src/github.com/alecthomas cp -a "$srcdir"/template-$_commit "$srcdir"/build/src/github.com/alecthomas/template cd "$srcdir"/build/src/github.com/alecthomas/template