summaryrefslogtreecommitdiff
path: root/libgnt-hg/PKGBUILD
blob: 81b929bf3508b227befd5547b346796f743ad2f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
#
# Upstream: https://git.metalpunks.info/arch-ports

_pkgname=libgnt
pkgname=$_pkgname-hg
pkgver=r1075.99ad336bd8bf
pkgrel=1
pkgdesc="ncurses widgets for Pidgin"
arch=('i686' 'x86_64')
url="https://bitbucket.org/pidgin/libgnt"
license=('GPL2')
depends=('ncurses>=6.1' 'glib2>=2.58.0' 'icu>=63.1' 'libxml2>=2.9.8' 'python>=3.7.0')
makedepends=('mercurial' 'meson' 'gtk-doc')
source=("$pkgname::hg+https://bitbucket.org/pidgin/$_pkgname")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  printf "r%s.%s" \
    "$(hg identify -n)" \
    "$(hg identify -i)"
}

build() {
  cd "${pkgname}"
  arch-meson build -Dtests=false
  ninja -C build
}

package() {
  cd "${pkgname}"
  DESTDIR="${pkgdir}" ninja -C build install
}