summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7cefc3b3238810e9bce89181a4bab4309c071241 (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.16.r0.g02904d9
pkgrel=1
pkgdesc="Fast Light Window Manager"
arch=('i686' 'x86_64')
url="https://github.com/bbidulock/flwm"
license=('GPL')
provides=(${_pkgname})
conflicts=(${_pkgname})
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
}

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

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