[arch-commits] Commit in uncrustify/trunk (PKGBUILD)

Pierre Neidhardt ambrevar at archlinux.org
Mon Oct 17 01:20:08 UTC 2016


    Date: Monday, October 17, 2016 @ 01:20:07
  Author: ambrevar
Revision: 192404

upgpkg: uncrustify 0.64-1

Modified:
  uncrustify/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-17 01:19:50 UTC (rev 192403)
+++ PKGBUILD	2016-10-17 01:20:07 UTC (rev 192404)
@@ -2,7 +2,7 @@
 # Contributor: Auguste Pop <auguste [at] gmail [dot] com>
 
 pkgname=uncrustify
-pkgver=0.63
+pkgver=0.64
 pkgrel=1
 pkgdesc="A source code beautifier"
 arch=("i686" "x86_64")
@@ -9,16 +9,23 @@
 url="http://uncrustify.sourceforge.net/"
 license=("GPL")
 depends=("gcc-libs")
+makedepends=("cmake")
 source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
-md5sums=('791ffa57ac6a301d16463c1a97c77c0c')
+md5sums=('008904ca40d07c4b3d66c717d59cb65b')
 
 build() {
-	cd "$srcdir/$pkgname-$pkgver"
-	./configure --prefix=/usr
+	cd "$srcdir"
+	mkdir -p build
+	cd build
+	cmake -DCMAKE_INSTALL_PREFIX=/usr ..
 	make
 }
 
 package() {
-	cd "$srcdir/$pkgname-$pkgver"
-	make DESTDIR="$pkgdir" install
+	cd "$srcdir/build"
+	make DESTDIR="$pkgdir" PREFIX=/usr install
+
+	cd ..
+	install -d -m755 "$pkgdir"/usr/share/uncrustify
+	install -m644 etc/*.cfg "$pkgdir"/usr/share/uncrustify
 }



More information about the arch-commits mailing list