summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0774af197c5dcffedfbf2e3cffe7dc81042dad35 (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
41
42
43
44
45
46
47
48
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Philippe DUCRETTET <ecolinux@gmx.fr>

pkgname=fvwm3-git
_pkgname=fvwm3
pkgver=1.0.4.r106.gf4848b95
pkgrel=1
pkgdesc="A powerful ICCCM2 compliant multiple virtual desktop window manager for X11"
arch=('i686' 'x86_64')
url="http://www.fvwm.org"
license=('GPL')
depends=('fribidi' 'libxpm' 'librsvg' 'libxrandr' 'libevent' 'libxcursor')
makedepends=('git' 'libxslt')
optdepends=('perl-tk: for ClickToFocus support'
            'perl-x11-protocol: for ClickToFocus support'
	           'python: for fvwm-menu-desktop')
provides=('fvwm')
conflicts=('fvwm')
options=('!emptydirs' '!makeflags')
source=("git+https://github.com/fvwmorg/fvwm3"
        "fvwm3.desktop")
sha256sums=('SKIP'
            'cc2ffc01ec615245252081e3948d4c6ff30d7e71b91d0642b2c5ab529cc39663')

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

build() {
  cd "${srcdir}/${_pkgname}"
  autoreconf -fiv
  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
    --enable-perllib \
    --enable-bidi \
    --enable-nls --enable-iconv \
    --enable-xft \
    --enable-mandoc
  make V=0
}

package() {
  cd "${srcdir}/${_pkgname}"
  make DESTDIR="${pkgdir}" install
  install -d "${pkgdir}/usr/share/doc/${_pkgname}"
  install -D -m644 ../fvwm3.desktop "${pkgdir}/usr/share/xsessions/fvwm3.desktop"
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}