archrelease: copy trunk to community-any
[ArchLinux/community.git] / uncrustify / trunk / PKGBUILD
blobd8fa5cd3834ee9a19b46462b7857ee6551c27b26
1 # Maintainer: Pierre Neidhardt <ambrevar@gmail.com>
2 # Contributor: Auguste Pop <auguste [at] gmail [dot] com>
4 pkgname=uncrustify
5 pkgver=0.75.1
6 pkgrel=1
7 pkgdesc="A source code beautifier"
8 arch=(x86_64)
9 url="http://uncrustify.sourceforge.net/"
10 license=(GPL)
11 depends=(gcc-libs)
12 makedepends=(cmake python)
13 source=("https://github.com/uncrustify/uncrustify/archive/uncrustify-$pkgver.tar.gz")
14 sha256sums=('fd14acc0a31ed88b33137bdc26d32964327488c835f885696473ef07caf2e182')
16 prepare() {
17   mkdir -p build
20 build() {
21   cd build
22   cmake ../$pkgname-$pkgname-$pkgver \
23     -DCMAKE_INSTALL_PREFIX=/usr
24   make
27 package() {
28   cd build
29   make DESTDIR="$pkgdir" PREFIX=/usr install
31   cd ../$pkgname-$pkgname-$pkgver
32   install -d -m755 "$pkgdir"/usr/share/uncrustify
33   install -m644 etc/*.cfg "$pkgdir"/usr/share/uncrustify