blob: 8a72a1c8bc2dc970de31403c15b5d70be269b829 (
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
39
|
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=uncrustify
pkgver=0.66
pkgrel=1
pkgdesc="A source code beautifier"
url="https://github.com/uncrustify/uncrustify"
arch="all"
license="GPL2"
makedepends="cmake python2"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
skip-test.patch"
builddir="$srcdir"
build() {
cd "$builddir"
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="d1c243cd798db10e0dc51e89e48068480f406f9f399b6635ad7ef6d9a3b012df054574cd8361da98098dde23bc350d82bb309c5ac46676768ce1b7ba47122319 uncrustify-0.66.tar.gz
c24ab53c5d0ae16358381ea7f820fa997b5660ad3d898aa1d6d764adbd6fc049ca1562830fd15c4020b39a6debd4de87793f55bee51cd0a50d95c9585f36620e skip-test.patch"
|