diff options
author | Peter Hoeg | 2015-10-09 19:00:51 +0800 |
---|---|---|
committer | Peter Hoeg | 2015-10-09 19:00:51 +0800 |
commit | 47203394a7672e2afd90e5150402fab823ee612f (patch) | |
tree | ff521076de69d290b8296382916f7a2e885f5b77 /PKGBUILD | |
download | aur-47203394a7672e2afd90e5150402fab823ee612f.tar.gz |
Initial upload: glpi 0.85.5-1
glpi
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fc2ed5359459 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Peter Hoeg <first name at last name dot com> + +pkgname=glpi +pkgver=0.85.5 +pkgrel=1 +pkgdesc="GLPI Inventory Management" +arch=('any') +url=('http://www.glpi-project.org') +source=("https://forge.glpi-project.org/attachments/download/2093/glpi-${pkgver}.tar.gz" + 'glpi.service') +license=('GPL') +options=(!strip) +depends=(nginx mysql php) +sha256sums=('6dee0ca3dc01f0aece2b91302c42e790749f02c0a3603d20385da9b663474309' + '2df019c2eada4bf8a31ee3fbb77e25f1e15882129bea19ebaabfbdddce8131b3') + +package() { + _base=$pkgdir/usr/share/webapps/glpi + cd $srcdir/glpi || exit + mkdir -p \ + $pkgdir/usr/lib/systemd/user \ + $pkgdir/usr/share/doc/glpi \ + $_base + + cp $srcdir/glpi.service $pkgdir/usr/lib/systemd/user + + mv *.txt $pkgdir/usr/share/doc/glpi + cp -r * $_base + + find $pkgdir -type d | xargs chmod 755 + find $pkgdir -type f | xargs chmod 644 + + find $_base/{files,config} -type d | xargs chmod 777 + find $_base -name '*.sh' | xargs chmod 755 +} |