summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRod Kay2016-06-05 12:06:57 +1000
committerRod Kay2016-06-05 12:06:57 +1000
commitdd31f1b69c8f6fbdb76491cabe0773afa2a9a079 (patch)
treea3950e107893172ddacfd1608f51a7dedf9d3053 /PKGBUILD
parente575aa7f50e4874b0bc1a59335a1abb736b99b53 (diff)
downloadaur-dd31f1b69c8f6fbdb76491cabe0773afa2a9a079.tar.gz
Update to 2016 version.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 11 insertions, 34 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4181fec797a..7806d5e1143 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Contributor: Rod Kay <charlie5 on #ada at freenode.net>
pkgname=asis
-pkgver=2015
-pkgrel=2
+pkgver=2016
+pkgrel=1
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)
@@ -17,14 +17,18 @@ conflicts=($pkgname)
source=(http://downloads.dragonlace.net/src/$pkgname-gpl-$pkgver-src.tar.gz
asis.gpr
+ patch-Makefile
patch-Makefile.stub
+ patch-a4g-encl_el.adb
patch-a4g-a_opt.ads
patch-a4g-a_opt.adb)
md5sums=('2c5a1f382bbf644bcdd2e6417f6d1e60'
'223d59aadef66852e7f0493bf6b01fee'
+ '223d59aadef66852e7f0493bf6b01fee'
'91e1338160c413a06031a547b4f84338'
'4608269e4e5bdd57cf8eabb2dc5c0041'
+ '4608269e4e5bdd57cf8eabb2dc5c0041'
'210cbc83474488ebcfd9b72d1ccc3e43')
@@ -41,9 +45,11 @@ prepare()
rm -rf ${WRKSRC}/gnat
cd $WRKSRC
+ patch -p0 -i ../patch-Makefile
patch -p0 -i ../patch-Makefile.stub
patch -p0 -i ../patch-a4g-a_opt.ads
patch -p0 -i ../patch-a4g-a_opt.adb
+ patch -p0 -i ../patch-a4g-encl_el.adb
}
@@ -56,41 +62,12 @@ build()
make tools
}
-
+
package()
{
cd $srcdir/$pkgname-gpl-$pkgver-src
-# make install prefix=$pkgdir/usr
-
- # gprinstall seems to be malfunctioning, just install manually
- #
- PREFIX=/usr
- DOCSDIR=/usr/share/doc/asis/
- INSTALL_PROGRAM=install
- INSTALL_DATA=install
- WRKSRC=$srcdir/$pkgname-gpl-$pkgver-src
- FILESDIR=$srcdir/$pkgname-gpl-$pkgver-src
-
- mkdir -p ${pkgdir}${PREFIX}/bin \
- ${pkgdir}${PREFIX}/include/asis \
- ${pkgdir}${PREFIX}/lib/asis \
- ${pkgdir}${PREFIX}/lib/gnat \
- ${pkgdir}${PREFIX}/share/gps/plug-ins \
- ${pkgdir}${DOCSDIR}/html \
- ${pkgdir}${DOCSDIR}/pdf
-
- ${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
- ${INSTALL_DATA} ${WRKSRC}/lib/*.a ${pkgdir}${PREFIX}/lib/asis
- ${INSTALL_DATA} ${WRKSRC}/documentation/*.html ${pkgdir}${DOCSDIR}/html
- ${INSTALL_DATA} ${WRKSRC}/documentation/*.pdf ${pkgdir}${DOCSDIR}/pdf
- ${INSTALL_DATA} ${WRKSRC}/documentation/*.txt ${pkgdir}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/documentation/asis.xml ${pkgdir}${PREFIX}/share/gps/plug-ins
- ${INSTALL_DATA} $srcdir/asis.gpr ${pkgdir}${PREFIX}/lib/gnat
- ${INSTALL_DATA} ${FILESDIR}/common.gpr ${pkgdir}${PREFIX}/lib/gnat
+ PREFIX=/usr make install prefix=${pkgdir}/usr
+ PREFIX=/usr make install-tools prefix=${pkgdir}/usr
}