Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # For ArchLinux by Joel Porquet
- pkgname=dtc-git
- pkgrel=1
- pkgver=1.4.4.r50.gfe50bd1
- pkgdesc='Device Tree Compiler'
- arch=(i686 x86_64)
- license=(GPL2)
- makedepends=(git swig)
- 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'
- }
- prepare() {
- cd dtc
- sed -i 's/-Werror//' Makefile
- find . -iname '*.py' -exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' {} \;
- }
- build() {
- cd dtc
- make
- }
- package() {
- cd dtc
- make DESTDIR="$pkgdir" PREFIX=/usr SETUP_PREFIX="$pkgdir/usr" install
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement