git » go-1.20.git » commit e9974e2

upgpkg: 2:1.1-2, making sure lib/go/site/src is created

author Alexander Rødseth
2013-05-26 13:26:35 UTC
committer Alexander Rødseth
2013-05-26 13:26:35 UTC
parent 9f2fa6dffbbc08a222ef73c57499a75c2632547c

upgpkg: 2:1.1-2, making sure lib/go/site/src is created

PKGBUILD +5 -3

diff --git a/PKGBUILD b/PKGBUILD
index d321218..2457f14 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,11 +7,11 @@
 # Contributor: Mike Rosset <mike.rosset@gmail.com>
 # Contributor: Daniel YC Lin <dlin.tw@gmail.com>
 
-# TODO: Create split packages for the crosscompilation versions as well
+# TODO: Create split packages for the crosscompilation versions as well?
 
 pkgname=go
 pkgver=1.1
-pkgrel=1
+pkgrel=2
 epoch=2
 pkgdesc='Google Go compiler and tools'
 arch=('x86_64' 'i686')
@@ -22,6 +22,7 @@ makedepends=('inetutils')
 options=('!strip')
 install="$pkgname.install"
 backup=('usr/lib/go/bin')
+
 if [ "$CARCH" == 'x86_64' ]; then
   source=("http://go.googlecode.com/files/${pkgname}$pkgver.linux-amd64.tar.gz"
           "$pkgname.sh")
@@ -92,7 +93,8 @@ package() {
     install -Dm644 misc/vim/$f $pkgdir/usr/share/vim/vimfiles/$f
   done
 
-  mkdir -p $pkgdir/{etc/profile.d,usr/{share/go,lib/go,lib/go/src,lib/go/site}}
+  mkdir -p \
+    $pkgdir/{etc/profile.d,usr/{share/go,lib/go,lib/go/src,lib/go/site/src}}
 
   cp -r doc misc -t $pkgdir/usr/share/go
   ln -s /usr/share/go/doc $pkgdir/usr/lib/go/doc