From b45a71cd55be5a10212f303dfd7527d6d86b7ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Mon, 6 Oct 2014 08:04:17 +0200 Subject: [PATCH] Added PKGBUILD for Arch linux. --- build-scripts/arch/PKGBUILD | 37 ++++++++++++++++++++++++++ build-scripts/arch/tox-weechat.install | 6 +++++ 2 files changed, 43 insertions(+) create mode 100644 build-scripts/arch/PKGBUILD create mode 100644 build-scripts/arch/tox-weechat.install diff --git a/build-scripts/arch/PKGBUILD b/build-scripts/arch/PKGBUILD new file mode 100644 index 0000000..4fdaf7f --- /dev/null +++ b/build-scripts/arch/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: HÃ¥vard Pettersson + +pkgname=tox-weechat-git +pkgver=r165.5f3d2f0 +pkgrel=1 + +pkgdesc='Tox protocol plugin for WeeChat.' +arch=('i686' 'x86_64') +url="https://github.com/haavardp/tox-weechat" +license=('GPL3') + +depends=('tox-git' 'weechat>=1.0.1' 'sqlite>=3.6.19') +makedepends=('git' 'cmake>=2.8.7') + +source=("${pkgname}::git://github.com/haavardp/tox-weechat.git") +md5sums=('SKIP') + +install='tox-weechat.install' + +pkgver() { + cd "${pkgname}" + printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${pkgname}" + + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make +} + +package() { + cd "${pkgname}" + + make DESTDIR="${pkgdir}/" install +} + diff --git a/build-scripts/arch/tox-weechat.install b/build-scripts/arch/tox-weechat.install new file mode 100644 index 0000000..807ca1a --- /dev/null +++ b/build-scripts/arch/tox-weechat.install @@ -0,0 +1,6 @@ +post_install() +{ + echo "Load Tox-WeeChat in WeeChat manually with '/plugin load /usr/lib/weechat/plugins/tox.so'" + echo 'It should load automatically.' +} +