astyle: Added
This commit is contained in:
28
mingw-w64-astyle/PKGBUILD
Normal file
28
mingw-w64-astyle/PKGBUILD
Normal file
@@ -0,0 +1,28 @@
|
||||
# Maintainer: Ray Donnelly <mingw.android@gmail.com>
|
||||
|
||||
_realname=astyle
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
pkgver=2.05.1
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
source=("http://sourceforge.net/projects/${_realname}/files/${_realname}/${_realname}%202.05.1/${_realname}_${pkgver}_linux.tar.gz"
|
||||
"mingw-w64-fix-install.patch")
|
||||
sha1sums=('b2ccedbb49f7f892afd6a9a59a67b57c36c41df3'
|
||||
'd36a9cb920c52d36fe9e53decfad5049f7c44324')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"/${_realname}
|
||||
patch -p1 -i "${srcdir}"/mingw-w64-fix-install.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
[ -d "${srcdir}"/build-${CARCH} ] && rm -rf "${srcdir}"/build-${CARCH}
|
||||
mv "${srcdir}"/${_realname} "${srcdir}"/build-${CARCH}
|
||||
cd "${srcdir}"/build-${CARCH}/build/gcc
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"/build-${CARCH}/build/gcc
|
||||
make install prefix=${pkgdir}${MINGW_PREFIX}
|
||||
}
|
||||
11
mingw-w64-astyle/mingw-w64-fix-install.patch
Normal file
11
mingw-w64-astyle/mingw-w64-fix-install.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- build-x86_64/build/gcc/Makefile.orig 2014-12-11 14:42:25.000000000 +0000
|
||||
+++ build-x86_64/build/gcc/Makefile 2015-03-07 00:05:08.142425600 +0000
|
||||
@@ -35,7 +35,7 @@
|
||||
CBASEFLAGS = -W -Wall -fno-rtti -fno-exceptions
|
||||
JAVAINCS = -I$(JAVA_HOME)/include
|
||||
CXX = g++
|
||||
-INSTALL=install -o $(USER) -g $(USER)
|
||||
+INSTALL=install
|
||||
|
||||
##################################################
|
||||
|
||||
Reference in New Issue
Block a user