summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11816cdf73f8bfc0ad6815f8c6655a72210e226f (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
# Maintainer: Antonio Cardace <anto.cardace@gmail.com>
pkgname=liblwipv6-svn
pkgver=r1129
pkgrel=1
pkgdesc="User level (lightweight) TCP/IP stack with IPv6 support"
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/view-os"
license=('GPL2')
depends=('glibc' 'libpcap>=0.8' 'vde2')
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/lwipv6"
        "${pkgname}.install")
md5sums=("SKIP"
         "b4165e6142a92d65c8e14479486decc4")

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

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

package() {
   cd "$srcdir/lwipv6"
   make install
}