summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 680122bbb8690432965bd29e1f44f988f7aaff23 (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
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: cyka3702 <swc.rainier@gmail.com>
# Contributor: paperbenni <paperbenni@gmail.com>
if [ -e /tmp/instanttheme ]; then
  echo "theme override found"
  THEME=$(cat /tmp/instanttheme)
else
  THEME=manjaro
fi

pkgname=instantwm
_pkgname=instantwm-git
pkgver=202006050953
pkgrel=1
pkgdesc="window manager for instantOS"
url="https://github.com/instantos/instantwm"
arch=('any')
license=('MIT')
options=(zipman)
depends=('libx11' 'libxinerama' 'libxft' 'instantutils' 'instantassist')
makedepends=('git')
provides=('instantwm')
conflicts=('instantwm')

source=("$_pkgname::git+https://github.com/instantOS/instantWM.git")
md5sums=("SKIP")

pkgver() {
  cd $_pkgname
  echo "$(date '+%Y%m%d%H%M')"
}

prepare() {
  cd $_pkgname
  if [ -e /tmp/instanttheme ]; then
    echo "theme override found"
    ./theme.sh "$(cat /tmp/instanttheme)"
  fi
}

build() {
  cd $_pkgname
  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}

package() {
  cd $_pkgname
  make PREFIX=/usr DESTDIR="$pkgdir" install
  install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}