updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / mtd-tools-git / PKGBUILD
blobbda6e4ec799c4f364bdfae093a5be0b17c059231
2 pkgname=mtd-tools-git
3 pkgver=20100415
4 pkgrel=1
5 pkgdesc="MTD userspace tools"
6 arch=('i686' 'x86_64')
7 url="http://www.linux-mtd.infradead.org/index.html"
8 license=('GPL')
9 depends=()
10 conflicts=()
11 provides=()
12 install=
13 source=()
15 _gitroot=git://git.infradead.org/mtd-utils.git
16 _gitname=mtd-utils
18 build() {
19   cd "$srcdir"
21   if [[ -d $_gitname ]]; then
22     cd $_gitname && git pull origin && cd ..
23   else
24     git clone $_gitroot
25   fi
27   rm -rf $_gitname-build
28   git clone $_gitname $_gitname-build
31 package ()
33   
34   make -C "$srcdir/$_gitname-build/" DESTDIR="$pkgdir" install
37 # vim:set ts=4 sw=4 et: