From d675e3870f59f19ccb5afe9b15349837e3288381 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 28 Mar 2023 02:40:52 +0300 Subject: [PATCH] add hexchat --- .gitignore | 1 + packages/hexchat-git/.SRCINFO | 37 +++++++++++++++++++++++++++++ packages/hexchat-git/.gitignore | 3 +++ packages/hexchat-git/PKGBUILD | 41 +++++++++++++++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 .gitignore create mode 100644 packages/hexchat-git/.SRCINFO create mode 100644 packages/hexchat-git/.gitignore create mode 100644 packages/hexchat-git/PKGBUILD diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ccf61c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pkg.tar.zst diff --git a/packages/hexchat-git/.SRCINFO b/packages/hexchat-git/.SRCINFO new file mode 100644 index 0000000..d2b3306 --- /dev/null +++ b/packages/hexchat-git/.SRCINFO @@ -0,0 +1,37 @@ +pkgbase = hexchat-git + pkgdesc = A GTK+ based IRC client + pkgver = 2.16.1 + pkgrel = 1 + url = https://hexchat.github.io + arch = i686 + arch = x86_64 + arch = armv6h + license = GPL + makedepends = git + makedepends = perl + makedepends = python + makedepends = meson + depends = gtk2 + depends = openssl + depends = dbus-glib + depends = luajit + depends = python-cffi + depends = libcanberra + depends = libnotify + depends = libproxy + depends = pciutils + depends = hicolor-icon-theme + depends = desktop-file-utils + depends = sound-theme-freedesktop + depends = iso-codes + optdepends = enchant: for spell check + optdepends = perl: for perl plugin + optdepends = python: for python plugin + provides = hexchat + conflicts = hexchat + conflicts = hexchat-lua-git + replaces = hexchat-lua-git + source = git+https://github.com/hexchat/hexchat.git + md5sums = SKIP + +pkgname = hexchat-git diff --git a/packages/hexchat-git/.gitignore b/packages/hexchat-git/.gitignore new file mode 100644 index 0000000..d1ec740 --- /dev/null +++ b/packages/hexchat-git/.gitignore @@ -0,0 +1,3 @@ +hexchat/ +pkg/ +src/ diff --git a/packages/hexchat-git/PKGBUILD b/packages/hexchat-git/PKGBUILD new file mode 100644 index 0000000..0af12fd --- /dev/null +++ b/packages/hexchat-git/PKGBUILD @@ -0,0 +1,41 @@ +# 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 +}