summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 504e20ca2c0ef9cae94b631f5ce9acc2ca2b2433 (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
# Maintainer: Anton S. Lobashev <soulthreads@yandex.ru>
pkgname=xwinmosaic-git
_gitname=xwinmosaic
pkgver=v0.4.2
pkgrel=3
pkgdesc="X11 window switcher with fancy look"
url="http://github.com/soulthreads/xwinmosaic"
arch=('i686' 'x86_64')
license=('BSD')
depends=('gtk2')
makedepends=('cmake' 'git')
options=(!libtool strip)

source=('git+https://github.com/soulthreads/xwinmosaic.git')
md5sums=('SKIP')

pkgver() {
  cd $_gitname
  git describe --always | sed 's|-|.|g'
}

build() {
  cd $_gitname
  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DWITH_SCRIPTS=ON "$srcdir/$_gitname"
  make || return 1
}

package() {
  cd $_gitname
  make DESTDIR="$pkgdir" install
}