Date: Friday, February 22, 2019 @ 17:10:47 Author: felixonmars Revision: 435243
upgpkg: deepin-go-lib 1.9.0-1 Modified: deepin-go-lib/trunk/PKGBUILD ----------+ PKGBUILD | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-02-22 17:04:22 UTC (rev 435242) +++ PKGBUILD 2019-02-22 17:10:47 UTC (rev 435243) @@ -1,7 +1,8 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> pkgname=deepin-go-lib -pkgver=1.8.0 +pkgver=1.9.0 +_commit=22913e13bc9a61441e087df2642b297207190394 pkgrel=1 pkgdesc='A library containing many useful go routines for things such as glib, gettext, archive, graphic,etc.' arch=('any') @@ -8,9 +9,13 @@ url="https://github.com/linuxdeepin/go-lib" license=('GPL3') depends=('libpulse' 'gdk-pixbuf2' 'mobile-broadband-provider-info' 'libx11') -source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/go-lib/archive/$pkgver.tar.gz") -sha512sums=('95eeed5857657453782cf7ed0e98152e899607675f3bfd187e5ba6b2e0a26964248539341380bcd09d877577d43909a47f820ade2c4d610aeedc0a5b847daaea') +source=("$pkgname-$_commit.tar.gz::https://github.com/linuxdeepin/go-lib/archive/$_commit.tar.gz") +sha512sums=('78453f036bd1e5654ca6fa6b1622943469bc2f238c800531d5c103b992a95887a8feaba74f6a770810ac93470bc848e09a7851fd532eb00448cebf0f6a38f829') +prepare() { + mv go-lib-{$_commit,$pkgver} +} + package() { mkdir -p "$pkgdir"/usr/share/gocode/src/pkg.deepin.io cp -a go-lib-$pkgver "$pkgdir"/usr/share/gocode/src/pkg.deepin.io/lib