tox-weechat/build-scripts/arch/PKGBUILD

38 lines
713 B
Bash
Raw Normal View History

2014-10-06 08:04:17 +02:00
# 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
}