summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRod Kay2015-11-04 08:46:37 +1100
committerRod Kay2015-11-04 08:46:37 +1100
commit79bc1cac9af94a07d4a6144988db7180dbfde124 (patch)
tree1aa71b86ffa89f2f068c0b78736c99af8906e9ef /PKGBUILD
parent952200318323a47a36c910208b3414d2fef71c94 (diff)
downloadaur-79bc1cac9af94a07d4a6144988db7180dbfde124.tar.gz
Added patchs to fix gnatpp version bug.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 21 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ab1a9b3b47e..1b9995953ec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
pkgname=asis
pkgver=2015
-pkgrel=1
-pkgdesc="ASIS gives Ada applications access to the complete syntactic and semantic structure of an Ada compilation unit."
+pkgrel=2
+pkgdesc="Allows Ada programs access to the syntactic and semantic structure of source code. Also provides extra tools such as gnatpp."
arch=(i686 x86_64)
url=http://libre.adacore.com/tools/$_pkgname
@@ -19,27 +19,32 @@ conflicts=($pkgname)
source=(http://downloads.dragonlace.net/src/$pkgname-gpl-$pkgver-src.tar.gz
asis.gpr
patch-Makefile.stub
-)
+ patch-a4g-a_opt.ads
+ patch-a4g-a_opt.adb)
md5sums=('2c5a1f382bbf644bcdd2e6417f6d1e60'
'223d59aadef66852e7f0493bf6b01fee'
- '91e1338160c413a06031a547b4f84338')
+ '91e1338160c413a06031a547b4f84338'
+ '4608269e4e5bdd57cf8eabb2dc5c0041'
+ '210cbc83474488ebcfd9b72d1ccc3e43')
prepare()
{
- WRKSRC=$srcdir/$pkgname-gpl-$pkgver-src
+ WRKSRC=$srcdir/$pkgname-gpl-$pkgver-src
- sed -i -e 's|OPSYS|ASISOPSYS|g' \
- -e 's|(prefix)|(DESTDIR)$$(prefix)|g' \
- ${WRKSRC}/Makefile \
- ${WRKSRC}/Makefile.stub \
- ${WRKSRC}/common.gpr
+ sed -i -e 's|OPSYS|ASISOPSYS|g' \
+ -e 's|(prefix)|(DESTDIR)$$(prefix)|g' \
+ ${WRKSRC}/Makefile \
+ ${WRKSRC}/Makefile.stub \
+ ${WRKSRC}/common.gpr
- rm -rf ${WRKSRC}/gnat
+ rm -rf ${WRKSRC}/gnat
- cd $WRKSRC
- patch -p0 -i ../patch-Makefile.stub
+ cd $WRKSRC
+ patch -p0 -i ../patch-Makefile.stub
+ patch -p0 -i ../patch-a4g-a_opt.ads
+ patch -p0 -i ../patch-a4g-a_opt.adb
}
@@ -49,6 +54,7 @@ build()
cd $srcdir/$pkgname-gpl-$pkgver-src
make all
+ make tools
}
@@ -76,7 +82,8 @@ package()
${pkgdir}${DOCSDIR}/html \
${pkgdir}${DOCSDIR}/pdf
- ${INSTALL_PROGRAM} ${WRKSRC}/tools/asistant/asistant ${pkgdir}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/tools/asistant/asistant ${pkgdir}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/tools/gnatpp/gnatpp ${pkgdir}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/asis/*.ad[bs] ${pkgdir}${PREFIX}/include/asis
${INSTALL_DATA} ${WRKSRC}/lib/*.ali ${pkgdir}${PREFIX}/lib/asis