updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / can-utils-git / PKGBUILD
blob193ce6aec360dd6f78d7c270b5c1bfce13bbb040
1 # Maintainer: Jan-Niklas Meier <dschanoeh@googlemail.com>
2 pkgname=can-utils-git
3 pkgver=20120115
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=()
23 _gitroot=https://git.gitorious.org/linux-can/can-utils.git
24 _gitname=can-utils
26 build() {
27 cd "$srcdir"
29 msg "Connecting to $_gitroot..."
30 if [[ -d $_gitname ]]; then
31 cd $_gitname && git pull origin && cd ..
32 msg2 "Local files updated"
33 else
34 git clone $_gitroot
35 msg2 "Git checkout done"
38 rm -rf $_gitname-build
39 git clone $_gitname $_gitname-build
40 cd $_gitname-build
42 msg "Starting autogen.sh"
44 ./autogen.sh
46 msg "Starting configure..."
48 ./configure
50 msg "Starting make..."
51 make
54 package() {
55 cd "$srcdir/$_gitname-build"
56 mkdir -p $pkgdir/usr/local/bin
57 make install DESTDIR="$pkgdir"