summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6688af1a19019b71a20b80eeba1b0a7b295acb2 (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
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Antonio Cardace <anto.cardace@gmail.com>
pkgname=umview-svn
pkgver=r1129
pkgrel=1
pkgdesc="User-mode implementation of View-OS."
arch=('x86_64' 'i686')
url="https://www.sourceforge.net/projects/view-os"
license=('GPL2')
depends=('glibc>=2.15'
         'libumlib0-svn')
optdepends=('umview-mod-umlwip-svn: module for umview networking')
makedepends=('autoconf' 'automake' 'make' 'libtool')
provides=("$pkgname=$pkgver")
conflicts=("$pkgname")
replaces=("$pkgname")
install="$pkgname.install"
source=("svn+http://svn.code.sf.net/p/view-os/code/trunk/xmview-os"
        "${pkgname}.install")
md5sums=("SKIP"
         "831c85f2d163424e8a5a2a9191e39056")


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

prepare() {
   cd $srcdir/xmview-os
   patch -i ../../${pkgname}.diff Makefile.am
}

build(){
   cd "$srcdir/xmview-os"
   autoreconf -i &> /dev/null
   if [ "$CARCH" == "x86_64" ]; then
      ./configure --prefix="/usr" --disable-static
   else
      ./configure --prefix="/usr" --libdir="/usr/lib32" --disable-static
   fi
   make
}

package() {
   cd "$srcdir/xmview-os"
   make DESTDIR="$pkgdir" install
   if [ "$CARCH" == "x86_64" ]; then
      rm -rf ${pkgdir}/usr/lib/libumlib*
   else
      rm -rf ${pkgdir}/usr/lib32/libumlib*
   fi
}