Created
April 26, 2014 08:51
-
-
Save hauptmech/11315155 to your computer and use it in GitHub Desktop.
include-what-you-use PKGBUILD for clang 3.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Carl Reinke <mindless2112 gmail com> | |
# Contributor: Hauptmech <hauptmech gmail com> | |
pkgname=include-what-you-use | |
pkgver=3.4 | |
pkgrel=1 | |
pkgdesc="A tool for use with clang to analyze #includes in C and C++ source files" | |
url="http://code.google.com/p/include-what-you-use/" | |
license=('LLVM Release License') | |
source=($pkgname-$pkgver.tar.gz::"http://include-what-you-use.com/downloads/include-what-you-use-3.4.src.tar.gz") | |
arch=('i686' 'x86_64') | |
depends=('clang=3.4') | |
makedepends=('clang=3.4') | |
optdepends=('python2') | |
build() | |
{ | |
cd $srcdir/$pkgname | |
cmake -DLLVM_PATH=/usr/lib -DCMAKE_INSTALL_PREFIX:PATH=/usr . | |
make | |
sed -i "s|^#!/usr/bin/python$|#!/usr/bin/python2|" fix_includes.py | |
} | |
package() | |
{ | |
cd $srcdir/$pkgname | |
make install DESTDIR=$pkgdir | |
install -Dm755 fix_includes.py "${pkgdir}/usr/bin/iwyu-fix_includes.py" | |
} | |
# vim:set ts=2 sw=2 et: | |
md5sums=('50e4548862c4295fc971c9aa84a610e5') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment