summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aca5711291fbd1953fcc3d9fdf218a9300fb401a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Grey Christoforo <first name [at] last name [dot] net>

pkgname=emoncms
pkgver=9.7.2
pkgrel=1
pkgdesc="an open-source web application for processing, logging and visualising energy, temperature and other environmental data"
url="https://emoncms.org"
arch=('any')
license=('GPL3')
depends=('php' 'mariadb' 'php-apache' 'php-mcrypt')
install=${pkgname}.install
source=("https://github.com/emoncms/emoncms/archive/${pkgver}.tar.gz" "apache.example.conf")
md5sums=('89df205c7880b04ccb6f85cfc4fbdd16'
         '4172492bf03807dd44d4fcc0c8cdaa0c')

options=(!strip emptydirs)

package() {
  install -d ${pkgdir}/usr/share/licenses/${pkgname}
  cp ${srcdir}/$pkgname-$pkgver/LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}

  mkdir -p "${pkgdir}/usr/share/webapps"
  cp -a ${srcdir}/$pkgname-$pkgver "${pkgdir}/usr/share/webapps/$pkgname"
  
  install -m644 -D ${srcdir}/apache.example.conf -t ${pkgdir}/etc/webapps/$pkgname
}

# vim:set ts=2 sw=2 et: