summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4d0eb25adadd73cc1fbdcac9342d64fa1f0a291 (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
_pkgname=xfswm
pkgname=${_pkgname}-git
pkgver=r12.0dc53b7
pkgrel=2
pkgdesc="An X11 window manager that keeps a single window fullscreen"
url="https://github.com/tomKPZ/xfswm"
arch=("x86_64")
url="https://github.com/tomKPZ/x-active-window-indicator"
depends=("glibc" "libx11")
makedepends=("cmake" "git")

source=("git+https://github.com/tomKPZ/xfswm.git")
md5sums=("SKIP")

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

build() {
    cd "$srcdir/${_pkgname}"
    cmake . -DCMAKE_INSTALL_PREFIX=/usr
    make
}

package() {
    cd "$srcdir/${_pkgname}"
    make DESTDIR="$pkgdir" install
}