Added PKGBUILD for Arch linux.

This commit is contained in:
Håvard Pettersson 2014-10-06 08:04:17 +02:00
parent 57dd75afaa
commit b45a71cd55
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,37 @@
# Maintainer: Håvard Pettersson <haavard.pettersson@gmail.com>
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
}

View File

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