summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4160877d09b80601082c08257f02f1f2dd61862c (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
# For ArchLinux by Joel Porquet

pkgname=dtc-git
pkgrel=1
pkgver=1.4.1.r29.gb06e55c
pkgdesc='Device Tree Compiler'
arch=(i686 x86_64)
license=(GPL2)
makedepends=(git)
conflicts=(dtc)
replaces=(dtc)
provides=(dtc)
url='http://jdl.com/software/'
source=(git://git.kernel.org/pub/scm/utils/dtc/dtc.git)
md5sums=('SKIP')

pkgver() {
  cd dtc
  git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd dtc
  make
}

package() {
  cd dtc
  make DESTDIR="$pkgdir" PREFIX=/usr install
}