summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenton Liu2020-07-20 13:32:40 -0400
committerDenton Liu2020-07-20 13:32:40 -0400
commit7acb0d63c14ebbc79cd6dce140ec5d53ec725d5f (patch)
treebf886ee7056082292cd7d49f0eee1f44697c58fe
parent7dc5483bda0e900c9d594549936f27fafab6608d (diff)
downloadaur-ddclient-git.tar.gz
PKGBUILD: build package with autoconf
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD23
2 files changed, 20 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 399510a3d22..2d74d2515a2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ddclient-git
pkgdesc = Update dynamic DNS entries for accounts on many dynamic DNS services
- pkgver = v3.8.3.r317.g7a99919
- pkgrel = 2
+ pkgver = v3.8.3.r582.g8253c67
+ pkgrel = 1
url = https://github.com/ddclient/ddclient
arch = any
license = GPL2
diff --git a/PKGBUILD b/PKGBUILD
index 1bb7a28d7f8..94c0d98c95a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@
pkgname=ddclient-git
_gitname="${pkgname%-git}"
-pkgver=v3.8.3.r317.g7a99919
-pkgrel=2
+pkgver=v3.8.3.r582.g8253c67
+pkgrel=1
pkgdesc="Update dynamic DNS entries for accounts on many dynamic DNS services"
url="https://github.com/ddclient/ddclient"
@@ -33,6 +33,21 @@ pkgver() {
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
+build() {
+ cd ddclient
+ ./autogen
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc/ddclient \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd ddclient
+ make check
+}
+
package() {
# hack so that we can merge in changes from upstream without changing all the
# $pkgname to $_gitname
@@ -40,9 +55,7 @@ package() {
cd ddclient
- install -Dm755 ddclient "$pkgdir"/usr/bin/$pkgname
- install -Dm600 sample-etc_ddclient.conf "$pkgdir"/etc/ddclient/ddclient.conf
- install -d "$pkgdir"/var/cache/ddclient
+ make DESTDIR="$pkgdir/" install
install -Dm644 "$srcdir"/ddclient.service "$pkgdir"/usr/lib/systemd/system/ddclient.service
install -Dm644 README.cisco "$pkgdir"/usr/share/doc/ddclient/README.cisco