summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cfbcc079666a9b5c019e75001f49907ca0316d6 (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
# Maintainer: purpleleaf  <max@ganoia.eu>

pkgname=jgmenu-git
pkgver=4.4.0.r1.gc258a6c
pkgrel=1
pkgdesc="Simple, independent, contemporary-looking X11 menu, designed for scripting, ricing and tweaking. Compiled with gtktheme, lx and pmenu support"
arch=('x86_64')
url="https://jgmenu.github.io/"
license=('GPL2')
depends=('libx11' 'cairo' 'pango' 'libxrandr' 'librsvg' 'libxml2' 'glib2' 'menu-cache' 'python')
makedepends=(git)
provides=(jgmenu)
conflicts=(jgmenu)
source=("git+https://github.com/johanmalm/jgmenu.git")
sha256sums=("SKIP")

pkgver() {
  cd "${srcdir}/${pkgname%-git}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${pkgname%-git}"
  ./configure \
    --with-gtktheme \
    --with-lx \
    --with-pmenu \
    --prefix=/usr

  make
}

package() {
  cd "${srcdir}/${pkgname%-git}"
  make DESTDIR="$pkgdir/" install
}