blob: 08f96ec720906a20f896901566b91514ca619612 (
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
36
|
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=uncrustify
pkgver=0.70.0
pkgrel=0
pkgdesc="A 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"
builddir="$srcdir/uncrustify-uncrustify-$pkgver"
build() {
[ "$CARCH" = "s390x" ] && sed -i '/^12004/d' tests/c-sharp.test
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
check() {
cd "$builddir/build"
make test
}
package() {
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
}
sha512sums="c78da66fb44fee2f41bb0afbe072facae244436f83ffdc41da75a988c1b3ce0f4effa80a1214186d3b837591662c20a33b13d81b03719cef3235a39085cc10d5 uncrustify-0.70.0.tar.gz"
|