updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / can-utils-git / PKGBUILD
blob357b2a4f1aa1268e6cc81c5a39504d33293c78d7
1 # Maintainer: Jan-Niklas Meier <dschanoeh@googlemail.com>
2 pkgname=can-utils-git
3 pkgver=20111210
4 pkgrel=1
5 pkgdesc="SocketCAN utilities"
6 arch=('i686' 'x86_64')
7 url="https://gitorious.org/linux-can/can-utils"
8 license=('GPLv2')
9 groups=()
10 depends=()
11 makedepends=(git libtool)
12 optdepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install=
19 changelog=
20 source=()
21 noextract=()
22 md5sums=()
24 _gitroot=https://git.gitorious.org/~bet-frogger/linux-can/mkl-can-utils.git
25 _gitname=mkl-can-utils
27 build() {
28 cd "$srcdir"
30 msg "Connecting to $_gitroot..."
31 if [[ -d $_gitname ]]; then
32 cd $_gitname && git pull origin && cd ..
33 msg2 "Local files updated"
34 else
35 git clone $_gitroot
36 msg2 "Git checkout done"
39 rm -rf $_gitname-build
40 git clone $_gitname $_gitname-build
41 cd $_gitname-build
43 msg "Starting autogen.sh"
45 ./autogen.sh
47 msg "Starting configure..."
49 ./configure
51 msg "Starting make..."
52 make
55 package() {
56 cd "$srcdir/$_gitname-build"
57 mkdir -p $pkgdir/usr/local/bin
58 make install DESTDIR="$pkgdir"