aboutsummaryrefslogtreecommitdiffstats
path: root/community/uncrustify/APKBUILD
blob: 00f6e96134f49df8a9d4d402c9d5a30b95b10076 (plain) (blame)
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
36
37
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=uncrustify
pkgver=0.73.0
pkgrel=1
pkgdesc="Source code beautifier"
url="https://github.com/uncrustify/uncrustify"
arch="all"
license="GPL-2.0-or-later"
makedepends="cmake python3"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/uncrustify/uncrustify/archive/uncrustify-$pkgver.tar.gz
		https://github.com/uncrustify/uncrustify/commit/dc32269e659cebaa6c3a199976fbf8cf616c7b29.patch
"
builddir="$srcdir/uncrustify-uncrustify-$pkgver"

build() {
	cmake -B build . \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

check() {
	cd build
	ctest --output-on-failure
}

package() {
	DESTDIR="$pkgdir" cmake --install build

	install -Dm644 etc/*.cfg -t "$pkgdir"/usr/share/$pkgname
}

sha512sums="
24b7eb2a76e2dcfca64223df40a434fcdcc281f5937cbf5e78832deb7716ee01b596aedff473af1e3023b33914357582500e4954f4ded009684bc4fb700e64d9  uncrustify-0.73.0.tar.gz
0a9dff2b78cffbf94c31cc629f7167cd5447a46ceee54ab4772780525b65b36147a675eb4400f032d1a2d23503ae6cc7838cc96dcb8737e97cc74dca9cdfa30f  dc32269e659cebaa6c3a199976fbf8cf616c7b29.patch
"