summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 20 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4101c1e9ee0..decc163045d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=ada-libfswatch-git
pkgver=r16.94c0a5f
-pkgrel=2
+pkgrel=3
pkgdesc='High level string and text processing library'
url='https://github.com/AdaCore/ada_libfswatch'
@@ -10,13 +10,20 @@ arch=('x86_64')
license=('GPL3')
depends=('gcc-libs' 'fswatch')
-makedepends=('git')
+makedepends=('git' 'gprbuild' 'gnatcoll-core')
provides=('ada-libfswatch')
-source=('git+https://github.com/AdaCore/ada_libfswatch.git' 'ada-libfswatch-git.patch')
+source=(
+ 'git+https://github.com/AdaCore/ada_libfswatch.git'
+ '0001-Use-system-libfswatch-install.patch'
+ '0002-Build-dynamic-library.patch'
+ '0003-Makefile-allow-passing-custom-flags-to-gprbuild.patch'
+)
sha1sums=('SKIP'
- 'cb3ddf5c8e8c5988c2f60111dfc18e132db00617')
+ '511ac217679b16c6dc8d1276556fd532fa10b0cf'
+ 'b08e1c9d415982b1e5388d1fa2b17fe4a1558be8'
+ '066d1578f3b6f4c8eece49d2650a79b5a0c084c8')
pkgver() {
cd "$srcdir/ada_libfswatch"
@@ -27,12 +34,19 @@ pkgver() {
prepare() {
cd "$srcdir/ada_libfswatch"
- git apply $srcdir/ada-libfswatch-git.patch
+ patch -p1 < "$srcdir/0001-Use-system-libfswatch-install.patch"
+ patch -p1 < "$srcdir/0002-Build-dynamic-library.patch"
+ patch -p1 < "$srcdir/0003-Makefile-allow-passing-custom-flags-to-gprbuild.patch"
}
build() {
cd "$srcdir/ada_libfswatch"
- make
+
+ ADA_FLAGS="$CFLAGS"
+ ADA_FLAGS="${ADA_FLAGS//-Wformat}"
+ ADA_FLAGS="${ADA_FLAGS//-Werror=format-security}"
+
+ make GPRBUILD_FLAGS="-vh -R -cargs $ADA_FLAGS -largs $LDFLAGS -gargs"
}
package() {