summaryrefslogtreecommitdiff
path: root/community/astyle/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/astyle/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/astyle/PKGBUILD')
-rw-r--r--community/astyle/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/astyle/PKGBUILD b/community/astyle/PKGBUILD
new file mode 100644
index 000000000..b0aed8acc
--- /dev/null
+++ b/community/astyle/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 92315 2013-06-03 21:55:18Z lfleischer $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Mateusz Herych <heniekk@gmail.com>
+# Contributor: Thomas Mader <thezema@gmail.com>
+# Contributor: Vinay S Shastry <vinayshastry@gmail.com>
+# Contributor: tardo <tardo@nagi-fanboi.net>
+
+pkgname=astyle
+pkgver=2.03
+pkgrel=1
+pkgdesc='A free, fast and small automatic formatter for C, C++, C#, and Java source code.'
+arch=('i686' 'x86_64')
+url='http://sourceforge.net/projects/astyle/'
+license=('LGPL')
+depends=('gcc-libs')
+source=("http://downloads.sourceforge.net/sourceforge/astyle/${pkgname}_${pkgver}_linux.tar.gz")
+md5sums=('ba84eaa8564155babd4ba1458d4eaa11')
+
+build() {
+ cd "$srcdir/$pkgname/build/gcc"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname/build/gcc"
+
+ install -Dm0755 bin/astyle "$pkgdir/usr/bin/astyle"
+
+ # install documentation (implements FS#23290)
+ install -d "$pkgdir/usr/share/doc/$pkgname/"
+ for f in ../../doc/*.html; do
+ install -m0644 "$f" "$pkgdir/usr/share/doc/$pkgname/"
+ done
+}