aboutsummaryrefslogtreecommitdiffstats
path: root/community/astyle/APKBUILD
blob: 436963c09c2b281ba2e36eb67b93db876b214aa0 (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
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=astyle
pkgver=3.1
pkgrel=0
pkgdesc="An automatic code formatter"
url="http://sourceforge.net/projects/astyle"
arch="all"
license="LGPL"
source="http://downloads.sourceforge.net/sourceforge/astyle/${pkgname}_${pkgver}_linux.tar.gz"
builddir="$srcdir/$pkgname/build/gcc"

build() {
	cd "$builddir"
	make release
}

check() {
	cd "$builddir"
	# upstream do not provide tests
	./bin/astyle --version
}

package() {
	cd "$builddir"
	install -Dm0755 bin/astyle "$pkgdir/usr/bin/astyle"
}

sha512sums="2e8f13d291abda66bbba30174c364c81a81a490e0a21376f7da7cf471644c22caa37b9eefb100d093bf26d1a8bfa9d2f14b4c2a9b75b3cb84428b4514e277ff2  astyle_3.1_linux.tar.gz"