summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33f9ac724f254b5e67c967c0c0b350067aec4699 (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
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Eric BĂ©langer <eric@archlinux.org>

pkgname=fluxbox-wm
_pkgname=fluxbox
_commit='88a74ff1cde22be3e894498ffd88934dc92dfef0'
pkgver=1.3.7
pkgrel=2
pkgdesc='A lightweight and highly-configurable window manager build without toolbar, systray and slit support'
arch=('x86_64')
url='http://www.fluxbox.org/'
license=('MIT')
provides=('fluxbox')
conflicts=('fluxbox')
depends=('fontconfig' 'libfontconfig.so' 'fribidi' 'libfribidi.so' 'imlib2'
         'libxft' 'libxinerama' 'libxpm' 'libxrandr')
makedepends=('git')
optdepends=('xorg-xmessage: for using the fbsetbg and fluxbox-generate_menu utilities')
options=('!makeflags')
source=("git+https://github.com/${_pkgname}/${_pkgname}.git#commit=${_commit}"
        'window-menu.patch'
        'styles.patch'
        'c-plus-plus-17.patch'
        'fluxbox.desktop')
sha256sums=('SKIP'
            '9caa2179d17517034c19cc237f817dfb26da1a4cbdc6ed298a1b2bea14ccf0f7'
            'd09736de789b3926a0642e381c4a30499a03c7ac99ffb6c981921910c392de07'
            'a743324fb0c684be44fbcb3ff626f604057fce42fe1dda774515c1b24efbf418'
            '2148a90aca653b596e9632264dbdbd8c7e673d732e4b04eee66a8ac1e68b3c5d')

pkgver() {
  cd "${_pkgname}"
  git describe --tags | sed 's/Release-//;s/_/./g;s/-/+/g'
}

prepare() {
  cd "${_pkgname}"
  patch -Np1 < ../window-menu.patch
  patch -Np1 < ../styles.patch
  patch -Np1 < ../c-plus-plus-17.patch
  autoreconf -fi
}

build() {
  cd "${_pkgname}"
  ./configure \
    --prefix=/usr \
    --enable-imlib2 \
    --enable-nls \
    --enable-xft \
    --enable-xinerama \
    --disable-slit \
    --disable-toolbar \
    --disable-systray
  make
}

package() {
  cd "${_pkgname}"
  make DESTDIR="${pkgdir}" install
  install -D -m0644 "${srcdir}/fluxbox.desktop" "${pkgdir}/usr/share/xsessions/fluxbox.desktop"
  install -D -m0644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}