1 # Maintainer: Ben Booth <benwbooth@gmail.com>
5 pkgdesc="API and toolkit for reading, writing, and manipulating BAM (genome alignment) files."
7 url="https://github.com/pezmaster31/bamtools"
11 makedepends=('git' 'cmake')
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot="https://github.com/pezmaster31/bamtools.git"
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
51 cd "$srcdir/$_gitname-build"
53 cp -r bin lib "$pkgdir/usr"
55 mkdir -p "$pkgdir/usr/include/bamtools"
56 cp -r include/* "$pkgdir/usr/include/bamtools"