summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD59
1 files changed, 27 insertions, 32 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 37f5862c952..07ec10c6c00 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,44 +1,39 @@
+# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: rabyte <rabyte__gmail>
-
pkgname=karmen-svn
-pkgver=386
+_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=('libsm' 'libx11')
-makedepends=('svn' 'autoconf' 'automake')
-provides=('karmen')
-conflicts=('karmen')
-source=()
-md5sums=()
-
-_svntrunk=http://karmen.svn.sourceforge.net/svnroot/karmen/trunk
-_svnmod=karmen
-
-build() {
- cd $srcdir
-
- if [ -d $_svnmod/.svn ]; then
- cd $_svnmod
- svn up -r $pkgver
- cd ..
- else
- svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
- fi
+depends=('libx11')
+makedepends=('svn')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("$pkgname::svn://svn.code.sf.net/p/$_pkgname/code/trunk")
+md5sums=('SKIP')
- msg "SVN checkout done or server timeout"
- msg "Starting make..."
+pkgver() {
+ cd $pkgname
+ local ver="$(svnversion)"
+ printf "r%s" "${ver//[[:alpha:]]}"
+}
- rm -rf $_svnmod-build
- cp -rf $_svnmod $_svnmod-build
- cd $_svnmod-build
+prepare() {
+ cd $pkgname
+ autoreconf -iv
+}
- autoreconf -i
+build() {
+ cd $pkgname
./configure --prefix=/usr
- make || return 1
- make DESTDIR=$pkgdir install
-
- install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ make
+}
+
+package() {
+ cd $pkgname
+ make DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}