diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 13 | ||||
-rw-r--r-- | version.patch | 20 |
3 files changed, 33 insertions, 4 deletions
@@ -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 @@ -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 000000000000..5edbe7e116c0 --- /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() + ")"); |