Added PKGBUILD for Arch linux.
This commit is contained in:
parent
57dd75afaa
commit
b45a71cd55
37
build-scripts/arch/PKGBUILD
Normal file
37
build-scripts/arch/PKGBUILD
Normal 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
|
||||||
|
}
|
||||||
|
|
6
build-scripts/arch/tox-weechat.install
Normal file
6
build-scripts/arch/tox-weechat.install
Normal 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.'
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user