summaryrefslogtreecommitdiff
path: root/libre/blackbox/PKGBUILD
blob: f8adf271bf88a1d34fe6b8ffcd65116365422a2e (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
# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor (Arch): durbatuluk <dvdscripter@gmail.org>
# Contributor (Arch): Steve Ponsford <sp4d@lavabit.com>
# Maintainer (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=blackbox
pkgver=0.75
pkgrel=1
pkgrel+=.parabola1
pkgdesc="A window manager for X11"
pkgdesc+=", without nonfree programs on the menu"
url="https://github.com/bbidulock/blackboxwm"
arch=('x86_64')
arch+=('i686' 'armv7h')
depends=('gcc-libs' 'libxft' 'libxext' 'libx11' 'libxt')
replaces=($pkgname-libre)
conflicts=($pkgname-libre)
license=('MIT')
source=($pkgname-$pkgver.tar.gz::"https://github.com/bbidulock/blackboxwm/archive/$pkgver.tar.gz"
        menu)
sha256sums=('f230aa19034995581b73a6d52ea375cac32acb216f1f15e5f4f33949d0d6541b'
            'f7daa30ed0360ece14d14ddece602e1161b5dfc84098411531e4e02fa20ddc71')

prepare() {
  cd blackboxwm-$pkgver
  sed -e '/AC_DISABLE_SHARED/d' -i configure.ac # Build shared library
  ./autogen.sh
}

build() {
  cd blackboxwm-$pkgver
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd blackboxwm-$pkgver
  make DESTDIR="$pkgdir" install
  install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  install -D -m644 $srcdir/menu "$pkgdir"/usr/share/$pkgname/menu
}