PKGBUILDs/aur/dtc/PKGBUILD

32 lines
541 B
Bash
Raw Normal View History

2013-08-29 23:53:38 +00:00
# Maintainer : Frederic Bezies <fredbezies at gmail dot com>
2013-02-19 02:39:47 +00:00
# For ArchLinux by Joël Porquet
pkgname=dtc
2013-08-29 23:53:38 +00:00
pkgver=v1.4.0
2014-02-11 01:08:17 +00:00
pkgrel=2
2013-08-29 23:53:38 +00:00
_gitname=dtc
2013-02-19 02:39:47 +00:00
pkgdesc="Device Tree Compiler"
url="http://jdl.com/software/"
arch=('i686' 'x86_64')
license=('GPL2')
2014-02-11 01:08:17 +00:00
makedepends=('git')
2013-08-29 23:53:38 +00:00
source=('git://jdl.com/software/dtc.git/')
md5sums=('SKIP')
2013-02-19 02:39:47 +00:00
2013-08-29 23:53:38 +00:00
pkgver() {
cd $_gitname
git describe --always | sed 's|-|.|g'
}
2013-02-19 02:39:47 +00:00
build() {
2013-08-29 23:53:38 +00:00
cd $_gitname
2013-02-19 02:39:47 +00:00
2013-08-29 23:53:38 +00:00
make
2013-02-19 02:39:47 +00:00
}
package() {
2013-08-29 23:53:38 +00:00
cd $_gitname
2013-02-19 02:39:47 +00:00
2013-08-29 23:53:38 +00:00
make INSTALL=$(which install) DESTDIR=${pkgdir} PREFIX=/usr install
2013-02-19 02:39:47 +00:00
}