summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fafa6a5f6756b5db8f5e17f2eb3f2ae6d40b141 (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
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Thorsten Lanfer <tlanfer@gmail.com>
pkgname=openhab-addons
pkgver=1.8.3
pkgrel=1
pkgdesc="openHAB automation addons"
arch=('any')
url="http://www.openhab.org/"
license=('EPL')
depends=('java-runtime-headless>=7'
				 "openhab-runtime=$pkgver")
makedepends=('unzip')
optdepends=()
backup=()
source=("https://bintray.com/artifact/download/openhab/bin/distribution-$pkgver-addons.zip")
noextract=("distribution-$pkgver-addons.zip")
md5sums=('c5803a3517f520e756647e20746c83a5')

prepare() {
	mkdir "$srcdir/$pkgname"
	cd "$srcdir/$pkgname"

	unzip "$srcdir/distribution-$pkgver-addons.zip"

}

package() {
	cd $pkgdir
	mkdir -p opt
	cp -r $srcdir/openhab-addons opt
}