1 # Maintainer: Jan-Niklas Meier <dschanoeh@googlemail.com>
5 pkgdesc="Socket CAN daemon"
7 url="https://github.com/dschanoeh/socketcand"
11 makedepends=(git libconfig)
24 _gitroot=http://github.com/dschanoeh/socketcand.git
30 msg "Connecting to $_gitroot..."
31 if [[ -d $_gitname ]]; then
32 cd $_gitname && git pull origin && cd ..
33 msg2 "Local files updated"
36 msg2 "Git checkout done"
39 rm -rf $_gitname-build
40 git clone $_gitname $_gitname-build
43 msg "Starting configure..."
45 ./configure --enable-rc-script --disable-init-script --mandir=/usr/share/man/man1
47 msg "Starting make..."
52 cd "$srcdir/$_gitname-build"
53 mkdir -p $pkgdir/usr/share/man/man1
54 mkdir -p $pkgdir/etc/rc.d
55 mkdir -p $pkgdir/usr/local/bin
56 make install SCRIPT="rc" PREFIX="/usr" DESTDIR="$pkgdir" sysroot="$pkgdir"
57 chmod +x $pkgdir/etc/rc.d/socketcand