SHARE
TWEET

AUR: dtc-git

a guest Sep 2nd, 2017 20 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # For ArchLinux by Joel Porquet
  2.  
  3. pkgname=dtc-git
  4. pkgrel=1
  5. pkgver=1.4.4.r50.gfe50bd1
  6. pkgdesc='Device Tree Compiler'
  7. arch=(i686 x86_64)
  8. license=(GPL2)
  9. makedepends=(git swig)
  10. conflicts=(dtc)
  11. replaces=(dtc)
  12. provides=(dtc)
  13. url='http://jdl.com/software/'
  14. source=(git://git.kernel.org/pub/scm/utils/dtc/dtc.git)
  15. md5sums=('SKIP')
  16.  
  17. pkgver() {
  18.   cd dtc
  19.   git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
  20. }
  21.  
  22. prepare() {
  23.   cd dtc
  24.   sed -i 's/-Werror//' Makefile
  25.   find . -iname '*.py' -exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' {} \;
  26.  
  27. }
  28.  
  29. build() {
  30.   cd dtc
  31.   make
  32. }
  33.  
  34. package() {
  35.   cd dtc
  36.   make DESTDIR="$pkgdir" PREFIX=/usr SETUP_PREFIX="$pkgdir/usr" install
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top