[arch-commits] Commit in phpvirtualbox/repos (2 files)
Pierre Schmitz
pierre at archlinux.org
Sat Jan 23 10:15:08 UTC 2021
Date: Saturday, January 23, 2021 @ 10:15:08
Author: pierre
Revision: 825944
archrelease: copy trunk to community-testing-any
Added:
phpvirtualbox/repos/community-testing-any/
phpvirtualbox/repos/community-testing-any/PKGBUILD
(from rev 825943, phpvirtualbox/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: phpvirtualbox/repos/community-testing-any/PKGBUILD (from rev 825943, phpvirtualbox/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-01-23 10:15:08 UTC (rev 825944)
@@ -0,0 +1,40 @@
+# Maintainer: Sergej Pupykin <pupykin.s at gmail.com>
+# Contributor:Techlive Zheng <techlivezheng at gmail dot com>
+
+pkgname=phpvirtualbox
+pkgver=5.2_1
+_pkgver=${pkgver/_/-}
+_pkgver=${_pkgver/rc/-rc}
+_commit=d1b69bbef180fa1d3b8031f363229dffb0798b8f
+pkgrel=4
+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}/}{} \;
+ ln -s /etc/webapps/phpvirtualbox/config.php "$pkgdir"/usr/share/webapps/phpvirtualbox/config.php
+}
More information about the arch-commits
mailing list