aboutsummaryrefslogtreecommitdiffstats
path: root/main/acf-provisioning-snom/APKBUILD
blob: c651e80a685253c3e9816579c4ac7ba4937692eb (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
41
42
43
44
45
46
47
# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
pkgname=acf-provisioning-snom
pkgver=8.4.32
pkgrel=0
pkgdesc="Files for provisioning Snom IP phones"
url="http://snom.com/"
arch="noarch"
license="AS IS"
depends=""
makedepends=""
source="http://provisioning.snom.com/download/fw/snom300-$pkgver-SIP-f.bin
http://provisioning.snom.com/download/fw/snom320-$pkgver-SIP-f.bin
http://provisioning.snom.com/download/fw/snom360-$pkgver-SIP-f.bin
http://provisioning.snom.com/download/fw/snom370-$pkgver-SIP-f.bin
http://fox.snom.com/config/snomlang-$pkgver.zip
snom300-firmware.htm
snom320-firmware.htm
snom360-firmware.htm
snom370-firmware.htm"
subpackages=""

prepare() {
	local i
	cd "$srcdir"
	for i in $source; do
		case $i in
		*.htm) sed -i "s/\$pkgver/$pkgver/" $i || return 1;;
		esac
	done
}

package() {
	cd "$srcdir"
	mkdir -p "$pkgdir"/var/www/provisioning/htdocs/snom
	cp *.htm *.bin *.xml "$pkgdir"/var/www/provisioning/htdocs/snom
}

md5sums="799ac33cb2ee11b92fe96fb7e49caca8  snom300-8.4.32-SIP-f.bin
bf9c500215ef4a9da9041f54d52b273f  snom320-8.4.32-SIP-f.bin
9aa96d2a337fb28df3412dea0e87d411  snom360-8.4.32-SIP-f.bin
faead904596d7713bf32ee21de33d0a0  snom370-8.4.32-SIP-f.bin
fb60b9b6dc82fcbef663b873bd37bff9  snomlang-8.4.32.zip
8b577e049488d735c576db6034b4fade  snom300-firmware.htm
9ad50f693de113559b973742c294bbc5  snom320-firmware.htm
af7aa9844f0e03c54e13c5a09de3fdbe  snom360-firmware.htm
42be37d51edcacc2804b8a6dda9dc333  snom370-firmware.htm"