summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d531f2f9adb74fcc9b6031dd053e910f7f36722b (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=flwm-git
_pkgname=flwm
pkgver=1.14.r47.g8c29729
pkgrel=1
pkgdesc="Fast Light Window Manager"
arch=('i686' 'x86_64')
url="https://github.com/bbidulock/flwm"
license=('GPL')
provides=('flwm')
conflicts=('flwm' 'flwm-tc')
depends=('fltk')
source=("$pkgname::git+https://github.com/bbidulock/flwm.git")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
  cd $pkgname
  autoreconf -fiv
}

build() {
  cd $pkgname
  ./configure --prefix=/usr
  make V=0
}

package() {
  cd $pkgname
  install -Dm0755 flwm "$pkgdir/usr/bin/flwm"
  install -Dm0644 flwm.1 "$pkgdir/usr/share/man/man1/flwm.1"
  install -Dm0644 flwm.desktop "$pkgdir/usr/share/xsessions/flwm.desktop"
  install -Dm0644 logo.png "$pkgdir/usr/share/pixmaps/flwm.png"
}

# vim:set ts=2 sw=2 et: