summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48f07aded5db1657185279b2f855814b22f90981 (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
49
50
51
# Maintainer: Gabor HAUZER <cysp74@gmail.com>

pkgname=fvwm3-git
_pkgname=fvwm3
pkgver=1.1.0.r120.g3e0d960d1
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' 'go' 'libxslt' 'asciidoctor' 'xtrans')
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-golang \
    --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"
}