summaryrefslogtreecommitdiff
path: root/pcr/dswm/PKGBUILD
blob: 122e62b9a6575551d5c0575b3e994fe26f9daf99 (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
pkgname=dswm
pkgver=0.0.5r2
pkgrel=5
pkgdesc="Deep Space Window Manager - tiling window manager, oriented for good usability and good emacs integration (StumpWM-based)."
url="http://sourceforge.net/projects/dswm/"
arch=('x86_64' 'i686')
license=('GPLv2')
depends=('sbcl' 'clx-git' 'cl-ppcre')
optdepends=('emacs')
makedepends=('autoconf')
conflicts=()
replaces=()
backup=()
install='dswm.install'
options=(!strip)
source=("http://sourceforge.net/projects/${pkgname}/files/${pkgver}/${pkgname}-${pkgver}.tar.gz")
md5sums=('90f95f7ecfbf964f8ed5aa629959bc1f')

build() {
  mkdir -p "${pkgdir}"/usr/share/xsessions/ # patch for specific original makefile
  cd $startdir/src/$pkgname-$pkgver
  sed -i 's/\@prefix\@//g' dswm.lisp.in
  autoconf
  ./configure --prefix=/usr \
              --with-ppcre=/usr/share/common-lisp/source/cl-ppcre

# this is necesary since the AUR packages do not modify the asdf's registry by default
      _sbcl_bopt="sbcl_BUILDOPTS=--eval \"(require :asdf)\" \
--eval \"(pushnew #p\\\"/usr/share/common-lisp/systems/\\\" asdf:*central-registry* :test #'equal)\" \
--eval \"(asdf:operate 'asdf:load-op 'clx)\" \
--load ./make-image.lisp"
      _sbcl_iopt="sbcl_INFOOPTS=--eval \"(require 'asdf)\" \
--eval \"(pushnew #p\\\"/usr/share/common-lisp/systems/\\\" asdf:*central-registry* :test #'equal)\" \
--eval \"(asdf:operate 'asdf:load-op 'clx)\" \
--eval \"(require 'dswm)\" \
--load ./manual.lisp \
--eval \"(progn (dswm::generate-manual) (sb-ext:quit))\""

  make "$_sbcl_bopt" "$_sbcl_iopt"
  make destdir="${pkgdir}" install
}