summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 07ec10c6c00ea22870b5bc1bd0c1dd4226a018a7 (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: rabyte <rabyte__gmail>
pkgname=karmen-svn
_pkgname=karmen
pkgver=r397
pkgrel=1
pkgdesc="An easy-to-use window manager of simple design"
arch=('i686' 'x86_64')
url="http://karmen.sourceforge.net/"
license=('MIT')
depends=('libx11')
makedepends=('svn')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$pkgname::svn://svn.code.sf.net/p/$_pkgname/code/trunk")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  local ver="$(svnversion)"
  printf "r%s" "${ver//[[:alpha:]]}"
}

prepare() {
  cd $pkgname
  autoreconf -iv
}

build() {
  cd $pkgname
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}