summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorcharlie52015-07-28 22:13:12 +1000
committercharlie52015-07-28 22:13:12 +1000
commit952200318323a47a36c910208b3414d2fef71c94 (patch)
treefe5d50a9cc22b410439ce30030a5f3f66f4f869b /PKGBUILD
downloadaur-952200318323a47a36c910208b3414d2fef71c94.tar.gz
Initial import.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD90
1 files changed, 90 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ab1a9b3b47e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,90 @@
+# Contributor: Rod Kay <charlie5 on #ada at freenode.net>
+
+pkgname=asis
+pkgver=2015
+pkgrel=1
+pkgdesc="ASIS gives Ada applications access to the complete syntactic and semantic structure of an Ada compilation unit."
+
+arch=(i686 x86_64)
+url=http://libre.adacore.com/tools/$_pkgname
+license=(GPL)
+groups=(gcc-ada)
+
+depends=(gcc-ada gnat_util)
+#makedepends=(gprbuild)
+
+provides=($pkgname)
+conflicts=($pkgname)
+
+source=(http://downloads.dragonlace.net/src/$pkgname-gpl-$pkgver-src.tar.gz
+ asis.gpr
+ patch-Makefile.stub
+)
+
+md5sums=('2c5a1f382bbf644bcdd2e6417f6d1e60'
+ '223d59aadef66852e7f0493bf6b01fee'
+ '91e1338160c413a06031a547b4f84338')
+
+
+prepare()
+{
+ 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
+
+ rm -rf ${WRKSRC}/gnat
+
+ cd $WRKSRC
+ patch -p0 -i ../patch-Makefile.stub
+}
+
+
+
+build()
+{
+ cd $srcdir/$pkgname-gpl-$pkgver-src
+
+ make all
+}
+
+
+
+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_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
+}