-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
30 lines (27 loc) · 893 Bytes
/
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
# Maintainer: Gesh <[email protected]>
pkgname=freedns-updater-git
pkgver=2013.10.02.10ab161
pkgrel=1
pkgdesc="Updates freedns.afraid.org dynamic dns domains"
arch=('any')
url="http://www.github.com/InvisibleEngineer/FreeDNS-Updater"
license=('custom:UNLICENSE')
depends=('python')
makedepends=('git')
backup=('etc/freedns.conf')
_repodir=${pkgname%-git}
source=("${_repodir}::git+git://github.com/InvisibleEngineer/FreeDNS-Updater.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir"
# Use date and hash of last commit.
git log -1 --format=%cd-%h --date=short | sed -e 's/-/./g'
}
package() {
cd "$srcdir/$_repodir"
install -d "${pkgdir}/var/cache/$pkgname"
install -D -m755 freedns.py "${pkgdir}/usr/bin/freedns"
install -D -m644 freedns.conf "${pkgdir}/etc/freedns.conf"
install -D -m644 UNLICENSE "${pkgdir}/usr/share/licenses/$pkgname/UNLICENSE"
}
# vim:set ts=2 sw=2 et: