summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c94a4bb5ef8f68993af43636d729bec26e7670c9 (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
# Maintainer: 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=202005271719
pkgrel=1
pkgdesc="window manager for instantOS"
url="https://github.com/instantos/instantwm"
arch=('any')
license=('MIT')
options=(zipman)
depends=('libx11' 'libxinerama' 'libxft')
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
}

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"
}