blob: a11ab66b92bfb81b7c991caf3cff5468186940fd (
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
37
38
|
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=uncrustify
pkgver=0.67
pkgrel=1
pkgdesc="A source code beautifier"
url="https://github.com/uncrustify/uncrustify"
arch="all"
license="GPL-2.0"
makedepends="cmake python2"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"
build() {
cd "$builddir"
[ "$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() {
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
}
sha512sums="fbdd25c774284b3fb2d84084d6e35cace093eafa22b7ce9b988f2e2b26e05f2a56f664eb182ef2319abe494c0743c76e04a6bb1cc013fea79cd1edea33b8f8d2 uncrustify-0.67.tar.gz"
|