Skip to content

Instantly share code, notes, and snippets.

@hauptmech
Created April 26, 2014 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hauptmech/11315155 to your computer and use it in GitHub Desktop.
Save hauptmech/11315155 to your computer and use it in GitHub Desktop.
include-what-you-use PKGBUILD for clang 3.4
# 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