summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDavid Runge2017-10-25 00:37:05 +0200
committerDavid Runge2017-10-25 00:37:05 +0200
commit914b05a617c9517e12f266a1eb4a0b9e0b413ff6 (patch)
treea860a26eed23be303d7afb4ce6a4d8a19d6d06f0 /PKGBUILD
parentaac1e942209f5292e0dd83d727fffdd753e36f06 (diff)
downloadaur-914b05a617c9517e12f266a1eb4a0b9e0b413ff6.tar.gz
PKGBUILD: Removing install script. Moving the chmodding of files and folders to prepare().
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 546a34a218b..203edb8c80a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
pkgname=mantisbt
pkgver=2.7.0
-pkgrel=1
+pkgrel=2
pkgdesc='Web-based issue tracking system'
arch=('any')
url='https://www.mantisbt.org/'
@@ -21,19 +21,22 @@ optdepends=('apache: Web server to run MantisBT'
'nginx: Web server to run MantisBT'
'php-pgsql: PostgreSQL database')
backup=('etc/webapps/mantisbt/config_inc.php')
-install='mantisbt.install'
source=("https://downloads.sourceforge.net/project/${pkgname}/mantis-stable/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('8be61bd8aa94bafe7af081de7d8411d89f69baa7cdda06ae8bdb2df5f44735d2d91cd44a7510dc8d8abb08fb6c182553018eeb88a44655681f3e5aed2f116873')
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ find . -type f -exec chmod 0644 {} \;
+ find . -type d -exec chmod 0755 {} \;
+}
+
package() {
install -dm 755 "${pkgdir}"/{etc/webapps/mantisbt,usr/share/webapps}
- cp -dr --no-preserve='ownership' mantisbt-${pkgver} "${pkgdir}"/usr/share/webapps/mantisbt
-
- cp "${pkgdir}"/usr/share/webapps/mantisbt/config/config_inc.php.sample "${pkgdir}"/etc/webapps/mantisbt/config_inc.php
- ln -s /etc/webapps/mantisbt/config_inc.php "${pkgdir}"/usr/share/webapps/mantisbt/config/config_inc.php
+ cp -dr --no-preserve='ownership' "${pkgname}-${pkgver}" "${pkgdir}/usr/share/webapps/${pkgname}"
- find "${pkgdir}" -type d -exec chmod 755 {} +
- find "${pkgdir}" -type f -exec chmod 644 {} +
+ #configuration
+ cp "${pkgdir}"/usr/share/webapps/mantisbt/config/config_inc.php.sample "${pkgdir}/etc/webapps/mantisbt/config_inc.php"
+ ln -s /etc/webapps/mantisbt/config_inc.php "${pkgdir}/usr/share/webapps/mantisbt/config/config_inc.php"
}
# vim: ts=2 sw=2 et: