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.' +} +