summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu2018-05-31 22:25:41 +1000
committerJonathan Liu2018-05-31 22:25:41 +1000
commit062509b1b7fa30d60571470781f04b11462950df (patch)
tree06f097dd9649cdcbfac3f8ea862f01759ea40c2c
parent067367b9e0b2a309b15e4f24b6b91cc01ce8fdeb (diff)
downloadaur-062509b1b7fa30d60571470781f04b11462950df.tar.gz
Update to r71.87b1d6b-1
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD13
-rw-r--r--version.patch20
3 files changed, 33 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5c1fc513b24..22c9e2dcd36 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = znc-palaver-git
pkgdesc = Palaver ZNC module provides push notifications
- pkgver = r31.f159c78
+ pkgver = r71.87b1d6b
pkgrel = 1
url = git://github.com/cocodelabs/znc-palaver
arch = i686
@@ -8,7 +8,9 @@ pkgbase = znc-palaver-git
license = MIT
depends = znc
source = git://github.com/cocodelabs/znc-palaver.git
+ source = version.patch
md5sums = SKIP
+ md5sums = 618b3f97e3d499bd0c7d21b2a0d37d5a
pkgname = znc-palaver-git
diff --git a/PKGBUILD b/PKGBUILD
index 49bdef49e6c..62e4ebad8d1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,28 @@
# Maintainer: Jonathan Liu <net147@gmail.com>
pkgname=znc-palaver-git
_gitname=znc-palaver
-pkgver=r31.f159c78
+pkgver=r71.87b1d6b
pkgrel=1
pkgdesc="Palaver ZNC module provides push notifications"
arch=('i686' 'x86_64')
url="git://github.com/cocodelabs/znc-palaver"
license=('MIT')
depends=('znc')
-source=("git://github.com/cocodelabs/${_gitname}.git")
-md5sums=('SKIP')
+source=("git://github.com/cocodelabs/${_gitname}.git"
+ 'version.patch')
+md5sums=('SKIP'
+ '618b3f97e3d499bd0c7d21b2a0d37d5a')
pkgver() {
cd "${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+prepare() {
+ cd "${_gitname}"
+ patch -Np1 -i "${srcdir}/version.patch"
+}
+
build() {
cd "${_gitname}"
make
diff --git a/version.patch b/version.patch
new file mode 100644
index 00000000000..5edbe7e116c
--- /dev/null
+++ b/version.patch
@@ -0,0 +1,20 @@
+--- a/palaver.cpp
++++ b/palaver.cpp
+@@ -30,6 +30,8 @@
+ #error "Palaver ZNC Modules requires ZNC 1.6 or newer."
+ #endif
+
++#define STR(x) #x
++
+
+ const char *kPLVCapability = "palaverapp.com";
+ const char *kPLVCommand = "PALAVER";
+@@ -1209,7 +1211,7 @@ public:
+ PutModule("Be sure to include all information from this command so we can try and debug any issues.");
+ PutModule("--");
+
+- PutModule("Palaver ZNC: " + CString(PALAVER_VERSION) + " -- http://palaverapp.com/");
++ PutModule("Palaver ZNC: " + CString(STR(PALAVER_VERSION)) + " -- http://palaverapp.com/");
+ CDevice *pDevice = DeviceForClient(*m_pClient);
+ if (pDevice) {
+ PutModule("Current device: (" + pDevice->GetToken() + ")");