AUR/packages/hexchat-git/PKGBUILD
2023-03-28 02:40:52 +03:00

42 lines
1.0 KiB
Bash

# Maintainer: Alexander Popov iiiypuk@fastmail.fm
pkgname=hexchat-git
pkgver=2.16.1
pkgrel=1
pkgdesc='A GTK+ based IRC client'
arch=('i686' 'x86_64' 'armv6h')
url='https://hexchat.github.io'
license=('GPL')
depends=('gtk2' 'openssl' 'dbus-glib' 'luajit' 'python-cffi'
'libcanberra' 'libnotify' 'libproxy' 'pciutils'
'hicolor-icon-theme' 'desktop-file-utils' 'sound-theme-freedesktop' 'iso-codes')
makedepends=('git' 'perl' 'python' 'meson')
optdepends=('enchant: for spell check'
'perl: for perl plugin'
'python: for python plugin')
provides=('hexchat')
conflicts=('hexchat' 'hexchat-lua-git')
replaces=('hexchat-lua-git')
source=('git+https://git.a2s.su/iiiypuk/hexchat.git')
md5sums=('SKIP')
_gitname='hexchat'
pkgver() {
cd "$_gitname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_gitname"
rm -rf build
meson build --prefix=/usr --buildtype=plain
ninja -C build
}
package() {
cd "$_gitname"
env DESTDIR="$pkgdir" ninja -C build install
}