summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a7c3decd0e3df4ca0be3a8fe135e34b1f52cfa9 (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
# Contributor: <josh.jpenguin@gmail.com>
_pkgname=eggwm
pkgname=$_pkgname-qt5
pkgver=r10.79e245a
pkgrel=1
pkgdesc="A simple and light Qt5 WM.  100% compatible with the EWMH and ICCCM standards."
url="https://notabug.org/tux_peng/eggwm"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('qt5-base' 'qt5-x11extras')
makedepends=('git' 'qt5-tools')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://notabug.org/tux_peng/eggwm.git#commit=79e245a8c855df45cfd9356ca56628048ba46d0d")
sha256sums=("SKIP")

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

build() {
  cd "$_pkgname"
  export QT_SELECT=5
  qmake
  make
}

package() {
  cd "$_pkgname"
  find installation -type f | xargs chmod -x 
  install -d "$pkgdir"/usr/share/eggwm
  cp -R installation/* "$pkgdir"/usr/share/eggwm
  install -D -m755 eggwm "$pkgdir"/usr/bin/eggwm
}