summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13d9018d8e60640a2f032a3609c91cde7835dda1 (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
38
# Maintainer: Brian Bidulock <bidulock@openss7.org>

pkgname=mini
pkgver=r34.0ee8bd7
pkgrel=1
pkgdesc="Stripped down lead version of aewm++"
arch=(x86_64 i686)
url="https://github.com/frankhale/mini"
license=('GPL3')
depends=('gcc-libs' 'libxext' 'json-c')
makedepends=('gendesk>=0.6' 'git' 'clang')
source=("$pkgname::git+https://github.com/frankhale/mini.git")
md5sums=('SKIP')

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

prepare() {
  gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name Mini
  gendesk -f -wm --pkgname "${pkgname}_kdm" --exec "$pkgname" --name Mini
}

build() {
  cd $pkgname
  make ADDITIONAL_CFLAGS="-std=c++1y"
}

package() {
  cd $pkgname
  install -Dm755 "mini" "$pkgdir/usr/bin/mini"
  install -Dm644 "$srcdir/${pkgname}.desktop" \
    "$pkgdir/usr/share/xsessions/${pkgname}.desktop"
  install -Dm644 "$srcdir/${pkgname}_kdm.desktop" \
    "$pkgdir/usr/share/apps/kdm/sessions/${pkgname}_kdm.desktop"
}