mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-02 11:02:28 +02:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# Maintainer: Andre 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"
|