blob: ac1b198596239ab6e874623ee1ca4b312230616e (
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
48
49
50
51
52
53
|
# Maintainer: Thomas Fanninger <thomas@fanninger.at>
pkgname=go-wol-server-git
_pkgname=go-wol-server
pkgver=0.2
pkgrel=2
epoch=1
pkgdesc="Wake on Lan server"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
license=('MIT')
depends=()
optdepends=()
provides=('go-wol-server')
makedepends=('go>=1.2' 'git' 'patch')
conflicts=()
options=('!strip' '!emptydirs')
backup=('etc/go-wol-server/config.toml'
'etc/go-wol-server/templates/footer.tmpl'
'etc/go-wol-server/templates/header.tmpl'
'etc/go-wol-server/templates/index.tmpl')
_gourl=github.com/fanningert
_gourl_pkgname=wol-server
source=('go-wol-server.service'
'config.toml'
"${_gourl_pkgname}::git+https://${_gourl}/${_gourl_pkgname}.git")
sha512sums=('913520d8972d7d91d0f78d14b21e511f87c8e0f5a6860242f9ec01e5c1f3791a1c0b7b83a59b5c1c7846db58905e55846d08db9e3aa849fada7e45ea0ddad6fc'
'beb090067f0f08371e049a940fe4c3f5de7aead3763366a25814a4424d761624558ffe3fc5447e9f9efbe5bde85b87a77c2fed1958f202adeaaee930f91d45d4'
'SKIP')
prepare() {
mkdir -p "${srcdir}/src/${_gourl}"
mv "${_gourl_pkgname}" "${srcdir}/src/${_gourl}"
msg2 "go get"
GOPATH="${srcdir}" go get "${_gourl}/${_gourl_pkgname}"
}
build() {
msg2 "Build program"
cd ${srcdir}/src/${_gourl}/${_gourl_pkgname}
GOPATH="${srcdir}" go fix
GOPATH="${srcdir}" go build
}
package() {
install -D -m 0755 "${srcdir}/src/${_gourl}/${_gourl_pkgname}/${_gourl_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -D -m 0600 "${srcdir}/config.toml" "$pkgdir/etc/${_pkgname}/config.toml"
cp -r "${srcdir}/src/${_gourl}/${_gourl_pkgname}/templates" "${pkgdir}/etc/${_pkgname}/templates"
install -D -m 0644 "${srcdir}/${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
}
|