summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD19
2 files changed, 8 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0d4257340f8d..67321e5a34d8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = dhcpcd-hook-ntpdate
pkgdesc = Hook for dhcpcd to sync time as soon as connection is up
- pkgver = 0.2.0.r2.gc19d363
+ pkgver = 0.2.1
pkgrel = 1
url = https://github.com/eworm-de/dhcpcd-hook-ntpdate
arch = any
@@ -8,8 +8,8 @@ pkgbase = dhcpcd-hook-ntpdate
makedepends = git
depends = ntp
depends = dhcpcd
- source = git://github.com/eworm-de/dhcpcd-hook-ntpdate.git
+ source = git+https://github.com/eworm-de/dhcpcd-hook-ntpdate.git#tag=0.2.1?signed
+ validpgpkeys = BD84DE71F493DF6814B0167254EDC91609BC9183
sha256sums = SKIP
pkgname = dhcpcd-hook-ntpdate
-
diff --git a/PKGBUILD b/PKGBUILD
index 66817428547c..474cf13aeb65 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,18 @@
# Maintainer: Christian Hesse <mail@eworm.de>
pkgname=dhcpcd-hook-ntpdate
-pkgver=0.2.0.r2.gc19d363
+pkgver=0.2.1
pkgrel=1
-pkgdesc="Hook for dhcpcd to sync time as soon as connection is up"
+pkgdesc='Hook for dhcpcd to sync time as soon as connection is up'
arch=('any')
depends=('ntp' 'dhcpcd')
makedepends=('git')
-url="https://github.com/eworm-de/dhcpcd-hook-ntpdate"
+url='https://github.com/eworm-de/dhcpcd-hook-ntpdate'
license=('GPL')
-source=('git://github.com/eworm-de/dhcpcd-hook-ntpdate.git')
+validpgpkeys=('BD84DE71F493DF6814B0167254EDC91609BC9183') # Christian Hesse <mail@eworm.de>
+source=("git+https://github.com/eworm-de/dhcpcd-hook-ntpdate.git#tag=${pkgver}?signed")
sha256sums=('SKIP')
-pkgver() {
- cd dhcpcd-hook-ntpdate/
-
- if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
- echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
- else
- echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
- fi
-}
-
package() {
cd dhcpcd-hook-ntpdate/