summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 269f6046f2690c1aa08708bf0eb2cc3604efbbc1 (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
# Contributor: Brian Bidulock <bidulock@openss7.org>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=ctwm-bzr
pkgver=4.1.0.r711
pkgrel=1
pkgdesc="Claude's Tab Window Manager"
arch=('i686' 'x86_64')		
url="http://ctwm.org/"
license=('custom:MIT/X Consortium')
provides=('ctwm')
conflicts=('ctwm')
depends=('libxmu' 'libxpm' 'libjpeg')
makedepends=('breezy' 'cmake')
source=("${pkgname%-bzr}::bzr+https://code.launchpad.net/~ctwm/ctwm/trunk")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname//-bzr/}
  printf $s%s $(cat VERSION|tr - .|sed 's+post+r+') $(bzr revno)
}

build() {
  cd ${pkgname//-bzr/}
  [ -d build ] || mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package() {
  cd ${pkgname//-bzr/}
  cd build
  sed -e 's,/lib64/,/lib/,g' -i cmake_install.cmake
  make DESTDIR="$pkgdir" install
  install -Dm0644 ../COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
}