blob: a9d05bde6582d2eff19d268a63ded6f9f3332d9d (
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: Gunnar Bretthauer <taijian@posteo.de>
pkgname=dynamic-dns-netcup-api
pkgver=5.0
pkgrel=1
pkgdesc="A simple dynamic DNS client written in PHP for use with the netcup DNS API."
arch=('any')
license=('MIT')
url="https://github.com/stecklars/${pkgname}"
depends=('php-interpreter')
makedepends=('git')
optdepends=()
backup=(etc/${pkgname}/config.php)
_commit=a8a6327877f26ca097d1b932649d3126a28e9d3e
source=("git+https://github.com/stecklars/${pkgname}.git#commit=$_commit"
${pkgname}.service
${pkgname}.timer)
sha256sums=('SKIP'
'359db333e91a49c9a9413dc52f524ef47c2192186cb7edfbf5277cd54bb5cb7d'
'e47b47ba368cbaf09cb63fdbeaef632f6fd358e6994440d8d3a682ee4510e648')
package() {
cd "$srcdir/${pkgname}"
# install the php scripts
install -Dm755 ./update.php "${pkgdir}/usr/share/${pkgname}/update.php"
install -Dm644 ./functions.php "${pkgdir}/usr/share/${pkgname}/functions.php"
# install systemd files
install -Dm644 $srcdir/${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -Dm644 $srcdir/${pkgname}.timer "${pkgdir}/usr/lib/systemd/system/${pkgname}.timer"
# copy the readmes
install -Dm644 ./README.md "${pkgdir}/usr/share/doc/${pkgname}/readme.txt"
install -Dm644 ./config.dist.php "${pkgdir}/usr/share/doc/${pkgname}/config.php.example"
# copy example config to /etc/${pkgname}
install -Dm640 ./config.dist.php "${pkgdir}/etc/${pkgname}/config.php"
}
|