summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2016-03-10 19:20:44 +0000
committerMario Finelli2016-03-10 19:20:44 +0000
commit5e6f85470e7edeaa7629346ed19e19761550b0af (patch)
treec5840af1854ab75d2fbf817dbe574f535ae80b51
parentf3877fc70afcaf6b55a3fb81cd5bd1fef5f020c3 (diff)
downloadaur-5e6f85470e7edeaa7629346ed19e19761550b0af.tar.gz
Simplify installation
-rw-r--r--PKGBUILD12
1 files changed, 5 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index db3a3c23e86..602b57ffd23 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,12 +20,10 @@ sha256sums=('f3d2c8d2119cccf4d84d32ad2662300eecda62ffba7304505e563e192b5a10ef'
'ea21b95da1a2f66d26849160f3257823254663144e6b3b506c35160b70c7b3bd')
package() {
- _instdir=$pkgdir/usr/share/webapps/$pkgname
- mkdir -p ${_instdir} $pkgdir/etc/webapps/$pkgname $pkgdir/etc/httpd/conf/extra
-
- install -D -m644 $srcdir/${pkgname}-${pkgver}.php $_instdir/index.php
-
- cp $pkgdir/etc/webapps/$pkgname/apache.example.conf $pkgdir/etc/httpd/conf/extra/httpd-${pkgname}.conf
-# echo "Include conf/extra/httpd-${pkgname}.conf" >> $pkgdir/etc/httpd/conf/httpd.conf
+ cd "$srcdir"
+ install -Dm0644 "${pkgname}-${pkgver}.php" "$pkgdir/usr/share/webapps/$pkgname/index.php"
+ # TODO: I don't really like this. What if someone is using nginx for example? Or doesn't care to
+ # have any configuration installed at all. Consider removing.
+ install -Dm0644 "httpd-${pkgname}.conf" "$pkgdir/etc/httpd/conf/extra/httpd-${pkgname}.conf"
}