summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 020f7887751d88c63cf0e967bfcd3f589c98ce89 (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
35
36
37
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=hiprompt-gtk-git
_pkgname=${pkgname%-git}
pkgver=r2.705ec83
pkgrel=1
pkgdesc='Legacy GTK3 prompter for Himitsu, do not use'
url='https://sr.ht/~sircmpwn/himitsu'
license=(GPL-3.0)
arch=(x86_64)
depends=()
makedepends=(meson make clang gtk-layer-shell gtk3)
conflicts=(hiprompt-gtk-py-git)
provides=(hiprompt-gtk)
source=("git+https://git.sr.ht/~sircmpwn/hiprompt-gtk")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"
  meson --prefix=/usr --buildtype=plain . build
  meson compile -C build
}

check() {
  cd "$_pkgname"
  meson test -C build
}

package() {
  cd "$_pkgname/build"
  install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname"
  #meson install -C build --destdir "$pkgdir"
}