summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 663ddbc480385f73a87288ee09542825111d3274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: robertfoster

pkgname=mtd-tools-git
pkgver=965.0e602bf
pkgrel=1
pkgdesc="MTD userspace tools"
arch=('i686' 'x86_64')
url="http://www.linux-mtd.infradead.org/index.html"
license=('GPL')
depends=('util-linux' 'lzo2')
makedepends=('git')
provides=('mtd-uitls')
replaces=('mtd-utils')
source=("mtd-utils::git://git.infradead.org/mtd-utils.git")

prepare() {
  cd mtd-utils
  sed -i 's/sbin/bin/' common.mk
}

package ()
{
  cd mtd-utils
  make DESTDIR="$pkgdir" install
}

pkgver() {
  cd mtd-utils
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

md5sums=('SKIP')