[arch-commits] Commit in phpvirtualbox/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Tue Dec 19 10:13:51 UTC 2017


    Date: Tuesday, December 19, 2017 @ 10:13:50
  Author: spupykin
Revision: 274875

upgpkg: phpvirtualbox 5.2_0rc1-1

Modified:
  phpvirtualbox/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++-----------------
 1 file changed, 9 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-19 10:13:39 UTC (rev 274874)
+++ PKGBUILD	2017-12-19 10:13:50 UTC (rev 274875)
@@ -3,34 +3,26 @@
 # Contributor:Techlive Zheng <techlivezheng at gmail dot com>
 
 pkgname=phpvirtualbox
-pkgver=5.0_5
-pkgrel=2
+pkgver=5.2_0rc1
+_pkgver=${pkgver/_/-}
+_pkgver=${_pkgver/rc/-rc}
+pkgrel=1
 pkgdesc="PHP/AJAX web interface for VirtualBox 4.*"
 arch=(any)
-url="http://sourceforge.net/projects/phpvirtualbox/"
+url="https://github.com/phpvirtualbox/phpvirtualbox"
 license=('GPL')
 depends=('php')
 backup=("etc/webapps/phpvirtualbox/config.php")
-source=(https://downloads.sourceforge.net/project/phpvirtualbox/phpvirtualbox-${pkgver/_/-}.zip
-	https://github.com/imoore76/phpvirtualbox/commit/10b6a7383c810dfa6261869cb1f9cc8bca2ad814.patch
-	https://github.com/imoore76/phpvirtualbox/commit/207b1decbb9de27f2c884ecb75f70d78d9820c80.patch
-	https://github.com/imoore76/phpvirtualbox/commit/4e9f9fd85dd2caad6bb7c50a742e1558aee57f77.patch)
-sha256sums=('c80c423fda30e5795872c9b9adc68429deee5726e468729472a573c324303c05'
-            '0b2bad7e69911a251a126cc835ce647b5ec86cd506fe99c984367ec9e885569e'
-            'db51fceccd16de6c959055ed5794e788173894c1a4ac23e064a7f2d467157dea'
-            '308c7652e895c799363c758218a11c8d2c9b5e3f9ee41ffd65b2679be5f1a56c')
+source=(https://github.com/phpvirtualbox/phpvirtualbox/archive/${_pkgver}.tar.gz)
+sha256sums=('519979ef23ac371a93e5ee52662a099691d2131423319d5376b01f6132c22f8f')
 
 prepare() {
-  cd "$srcdir"/${pkgname}-${pkgver/_/-}
+  cd "$srcdir"/${pkgname}-${_pkgver}
   rm -f endpoints/lib/*.wsdl
-  for p in $(ls -1 $srcdir/*.patch); do
-      patch -p1 <$p
-  done
-  sed -i "s|${pkgver/_/-}|5.1-1|" endpoints/lib/config.php
 }
 
 package() {
-  cd "$srcdir"/${pkgname}-${pkgver/_/-}
+  cd "$srcdir"/${pkgname}-${_pkgver}
 
   mkdir -p "$pkgdir"/etc/webapps/phpvirtualbox
   install -D -m644 config.php-example "$pkgdir"/etc/webapps/phpvirtualbox/config.php



More information about the arch-commits mailing list