aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uncrustify/APKBUILD
blob: 6fb73cfb351cafd65c8495177feb79d814fae556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: André Klitzing <aklitzing@gmail.com>

pkgname=uncrustify
pkgver=0.64
pkgrel=0
pkgdesc="A source code beautifier"
url="https://github.com/uncrustify/uncrustify"
arch="all"
license="GPL2"
makedepends="cmake"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"

build() {
	cd "$builddir"
	mkdir -p build
	cd build
	cmake -DCMAKE_INSTALL_PREFIX=/usr ..
	make
}

package() {
	cd "$builddir"
	install -d -m755 "$pkgdir"/usr/share/$pkgname
	install -m644 etc/*.cfg "$pkgdir"/usr/share/$pkgname
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING

	cd build
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

md5sums="008904ca40d07c4b3d66c717d59cb65b  uncrustify-0.64.tar.gz"
sha256sums="0fca05fe8bac2cd80bf3ed77378c82ffe365f37a3f80b8e0ca2dbb3c6e25f3d7  uncrustify-0.64.tar.gz"
sha512sums="27be7bceccab20d58ad8f7bb875f1270771f9c0994d6aac404743028ccb9002229d5f000d7cfb4264e66409581f7339b88e17e5ad9b8dd2e8817431268411a0f  uncrustify-0.64.tar.gz"