summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c4d518d1a9d74c56743f8307d886adc4bb2a204 (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
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Alex S. <shantanne[at]hotmail.com>

pkgname=ordersprinter
pkgver=2.0.9
pkgrel=1
packagename="$(echo ${pkgname}-${pkgver} | sed 's/\./_/g')"
pkgdesc="OrderSprinter is a free Point-Of-Service/Point-Of-Sale software (POS) for the gastronomy."
url=https://ordersprinter.de/
arch=('any')
license=('Creative Commons License BY-NC-ND')
depends=('mysql' 'php')

source=("https://ordersprinter.de/${packagename}.zip"
        ${pkgname}.conf
        ${pkgname}.service
        ${pkgname}.sysusers
        ${pkgname})
md5sums=('1178a85b08ed1fd07c48219ac9f55c79'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP')
install=${pkgname}.install

package()
{
	mkdir -p ${pkgdir}/opt/${pkgname}
	mkdir -p ${pkgdir}/etc/${pkgname}
	mkdir -p ${pkgdir}/usr/lib/systemd/system
	mkdir -p ${pkgdir}/usr/bin
	mkdir -p ${pkgdir}/usr/share/licenses/{${pkgname},swissbit}
	cp -r ${srcdir}/{gastsystem,printserver,scripts,spider,tseconnector,webapp} ${pkgdir}/opt/${pkgname}/
	install -Dm 644 ${srcdir}/${pkgname}.conf ${pkgdir}/etc/${pkgname}/${pkgname}.conf
	install -Dm 644 ${srcdir}/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service
	install -Dm 644 ${srcdir}/${pkgname}.sysusers ${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf
	install -Dm 644 ${srcdir}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
	# move to proper licenses directories
	install -Dm 644 ${srcdir}/webapp/OrderSprinter-LIZENZ.html ${pkgdir}/usr/share/licenses/${pkgname}/
	install -Dm 644 ${srcdir}/tseconnector/swissbit/tseconnector_lib/{LICENSE-apache-commons.txt,LICENSE-jackson-jr.html,LICENSE-json-simple.txt,LICENSE_Swissbit_Wormapi.pdf} ${pkgdir}/usr/share/licenses/swissbit/
}