Date: Tuesday, December 20, 2022 @ 17:37:32
Author: spupykin
Revision: 1363775
archrelease: copy trunk to community-any
Added:
phpvirtualbox/repos/community-any/PKGBUILD
(from rev 1363774, phpvirtualbox/trunk/PKGBUILD)
Deleted:
phpvirtualbox/repos/community-any/PKGBUILD
----------+
PKGBUILD | 90 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 49 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-12-20 17:37:23 UTC (rev 1363774)
+++ PKGBUILD 2022-12-20 17:37:32 UTC (rev 1363775)
@@ -1,41 +0,0 @@
-# Maintainer: Sergej Pupykin <[email protected]>
-# Contributor:Techlive Zheng <techlivezheng at gmail dot com>
-
-pkgname=phpvirtualbox
-pkgver=5.2_1
-_pkgver=${pkgver/_/-}
-_pkgver=${_pkgver/rc/-rc}
-_commit=cf82d58f26ed82d3f7f4b5ba5e80f8754ee48c2f
-pkgrel=6
-pkgdesc="PHP/AJAX web interface for VirtualBox"
-arch=(any)
-url="https://github.com/phpvirtualbox/phpvirtualbox"
-license=('GPL')
-depends=('php7')
-makedepends=('git')
-backup=("etc/webapps/phpvirtualbox/config.php")
-#source=("https://github.com/phpvirtualbox/phpvirtualbox/archive/${_pkgver}.tar.gz")
-source=("git+https://github.com/phpvirtualbox/phpvirtualbox.git#commit=${_commit}")
-sha256sums=('SKIP')
-
-package() {
-# cd "$srcdir"/${pkgname}-${_pkgver}
- cd "$srcdir"/${pkgname}
-
- mkdir -p "$pkgdir"/etc/webapps/phpvirtualbox
- install -D -m644 config.php-example
"$pkgdir"/etc/webapps/phpvirtualbox/config.php
-
- # Apache configuration
- cat > "$pkgdir"/etc/webapps/phpvirtualbox/apache.example.conf <<EOF
- Alias /phpvirtualbox "/usr/share/webapps/phpvirtualbox"
- <Directory "/usr/share/webapps/phpvirtualbox">
- Options FollowSymlinks
- AllowOverride All
- Require all granted
- </Directory>
-EOF
-
- find . -type f -exec install -D -m644
{,"$pkgdir"/usr/share/webapps/${pkgname}/}{} \;
- rm -r "$pkgdir"/usr/share/webapps/${pkgname}/.git
- ln -s /etc/webapps/phpvirtualbox/config.php
"$pkgdir"/usr/share/webapps/phpvirtualbox/config.php
-}
Copied: phpvirtualbox/repos/community-any/PKGBUILD (from rev 1363774,
phpvirtualbox/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-12-20 17:37:32 UTC (rev 1363775)
@@ -0,0 +1,49 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+# Contributor:Techlive Zheng <techlivezheng at gmail dot com>
+
+pkgname=phpvirtualbox
+pkgver=5.2_1
+_pkgver=${pkgver/_/-}
+_pkgver=${_pkgver/rc/-rc}
+_commit=cf82d58f26ed82d3f7f4b5ba5e80f8754ee48c2f
+pkgrel=7
+pkgdesc="PHP/AJAX web interface for VirtualBox"
+arch=(any)
+url="https://github.com/phpvirtualbox/phpvirtualbox"
+license=('GPL')
+depends=('php')
+makedepends=('git')
+backup=("etc/webapps/phpvirtualbox/config.php")
+#source=("https://github.com/phpvirtualbox/phpvirtualbox/archive/${_pkgver}.tar.gz")
+source=("git+https://github.com/phpvirtualbox/phpvirtualbox.git#commit=${_commit}"
+
"https://github.com/phpvirtualbox/phpvirtualbox/commit/9922d96b27db94e99b665552d3a0331b0fac90ad.patch")
+sha256sums=('SKIP'
+ '1d4c0a217765456bd94e77bf43ba72b7cb2b70ca46de767c2d33a29598845524')
+
+prepare() {
+# cd "$srcdir"/${pkgname}-${_pkgver}
+ cd "$srcdir"/${pkgname}
+ patch -p1 <../9922d96b27db94e99b665552d3a0331b0fac90ad.patch
+}
+
+package() {
+# cd "$srcdir"/${pkgname}-${_pkgver}
+ cd "$srcdir"/${pkgname}
+
+ mkdir -p "$pkgdir"/etc/webapps/phpvirtualbox
+ install -D -m644 config.php-example
"$pkgdir"/etc/webapps/phpvirtualbox/config.php
+
+ # Apache configuration
+ cat > "$pkgdir"/etc/webapps/phpvirtualbox/apache.example.conf <<EOF
+ Alias /phpvirtualbox "/usr/share/webapps/phpvirtualbox"
+ <Directory "/usr/share/webapps/phpvirtualbox">
+ Options FollowSymlinks
+ AllowOverride All
+ Require all granted
+ </Directory>
+EOF
+
+ find . -type f -exec install -D -m644
{,"$pkgdir"/usr/share/webapps/${pkgname}/}{} \;
+ rm -r "$pkgdir"/usr/share/webapps/${pkgname}/.git
+ ln -s /etc/webapps/phpvirtualbox/config.php
"$pkgdir"/usr/share/webapps/phpvirtualbox/config.php
+}