-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
98 lines (83 loc) · 2 KB
/
PKGBUILD
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Contributor: Denton Liu <[email protected]>
# Contributor: Johannes Löthberg <[email protected]>
# Contributor: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Abhishek Dasgupta <[email protected]>
# Contributor: David Rosenstrauch <[email protected]>
_pkgname=ddclient
pkgname=${_pkgname}-git
pkgver=v3.9.1.r313.g11a583b
pkgrel=1
pkgdesc='Update dynamic DNS entries for accounts on many dynamic DNS services'
arch=(
'any'
)
url='https://github.com/ddclient/ddclient'
license=(
'GPL2'
)
depends=(
'curl'
'iproute2'
'perl-digest-sha1'
'perl-io-socket-inet6'
'perl-io-socket-ssl'
)
optdepends=(
'smtp-forwarder: email support requires sendmail binary'
)
makedepends=(
'git'
)
checkdepends=(
'perl-test-mockmodule'
'perl-test-warnings'
)
provides=(
"${_pkgname}"
)
conflicts=(
"${_pkgname}"
)
backup=(
"etc/${_pkgname}/ddclient.conf"
)
_commit='11a583b003920f8e15591813598b70061d1a4654'
source=(
"git://github.com/${_pkgname}/${_pkgname}.git#commit=${_commit}"
"${_pkgname}.service"
)
sha512sums=(
'SKIP'
'a04d6976da4d49f53262dfa176ed077201aedc1e95e78ae661c49e2b4472e036507ae325533ef8051a52f86b296777ff157be754e45291653ac3618b3fa517c7'
)
pkgver() {
cd "${_pkgname}"
git describe --long --tags "${_commit}" | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${_pkgname}"
./autogen
./configure \
--prefix=/usr \
--sysconfdir="/etc/${_pkgname}" \
--localstatedir=/var
make
}
check() {
cd "${_pkgname}"
make VERBOSE=1 check
}
package() {
install -D --mode=644 --target-directory="${pkgdir}/usr/lib/systemd/system" \
"${_pkgname}.service"
cd "${_pkgname}"
make DESTDIR="${pkgdir}/" install
install -D --mode=644 --target-directory="${pkgdir}/usr/share/doc/${_pkgname}" \
README.cisco \
README.md \
README.ssl \
sample-etc_cron.d_ddclient
install -D --mode=644 --target-directory="${pkgdir}/usr/share/licenses/${_pkgname}" \
COPYING \
COPYRIGHT
}