summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorShulhan2019-01-16 16:27:29 +0700
committerShulhan2019-01-16 16:27:58 +0700
commit34540041b038cf27b4e4f4885a09aa16ee5e0232 (patch)
tree2ea326017d5d46fadd4750704939e5815007ec35
parent82ab3e389fbb593084e7c41cb0dd2e6f326096a1 (diff)
downloadaur-34540041b038cf27b4e4f4885a09aa16ee5e0232.tar.gz
Release v2.0.0
-rw-r--r--.SRCINFO3
-rw-r--r--Makefile10
-rw-r--r--PKGBUILD6
-rw-r--r--rescached-git.install4
4 files changed, 13 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 98e327f7326..08eff2202a9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,8 @@
pkgbase = rescached-git
pkgdesc = Resolver/DNS cache daemon
- pkgver = 2.0.0rc2.96.b727ff3
+ pkgver = 2.0.0.r0.g56ddcf9
pkgrel = 1
url = https://github.com/shuLhan/rescached-go
- install = rescached-git.install
arch = i686
arch = x86_64
arch = armv7h
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..172791ae974
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+.PHONY: all check release
+
+all:
+ makepkg -sd
+
+check:
+ namcap PKGBUILD
+
+release:
+ makepkg --printsrcinfo > .SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
index 91e842f0018..fcac6d85656 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,6 @@
# Maintainer: shulhan <ms@kilabit.info>
pkgname=rescached-git
-pkgver=2.0.0rc2.96.b727ff3
-_pkgver=2.0.0rc2
+pkgver=2.0.0.r0.g56ddcf9
pkgrel=1
pkgdesc="Resolver/DNS cache daemon"
arch=('i686' 'x86_64' 'armv7h')
@@ -20,7 +19,6 @@ sha1sums=(
'SKIP'
)
-install=rescached-git.install
backup=(
'etc/rescached/rescached.cfg'
'etc/rescached/hosts.d/hosts.block'
@@ -28,7 +26,7 @@ backup=(
pkgver() {
cd "$pkgname"
- printf "%s.%s.%s" "$_pkgver" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
diff --git a/rescached-git.install b/rescached-git.install
deleted file mode 100644
index 2ecb1c1e859..00000000000
--- a/rescached-git.install
+++ /dev/null
@@ -1,4 +0,0 @@
-post_upgrade() {
- ## Remove old cache
- [[ -f /var/cache/rescached/rescached.vos ]] && rm -f /var/cache/rescached/rescached.vos
-}