summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4fc525a5cfe5d84581a2a0af1edf4b232aeab876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Maintainer:  Rod Kay              <rodakay5 at gmail.com>
# Contributor: Sietse van der Molen <sietse@vdmolen.eu>

pkgname=florist
pkgdesc='An open-source implementation of IEEE Standard 1003.5b-1996, the POSIX Ada binding.'
pkgver=2026
pkgrel=1

arch=(i686 x86_64)
url=https://github.com/Blady-Com/florist
license=(GPL3)

depends=(gcc-ada)
options=(staticlibs !strip)

source=(git+https://github.com/Blady-Com/florist.git
        posix-signals.patch
        posix-implementation.patch
        posix-supplement_to_ada_io.patch
        posix-unsafe_process_primitives.patch
        remove_redundant_parentheses_from-posix-signals.adb.patch)
        
sha256sums=(SKIP
            c8cdc201ce444dd9bcdaf4ed790ce6ce3cfabe922d5e804edc3356cf28b3e1f2
            daefcebb30f49f437562c63b1957891963fbf832448892f4c73ae575735a972c
            0d3366e14e12df13f68c12122eb896cc1be21590f897dda52e212805b529185b
            9750ff2db04afd7d9394101f286206bc0b62085e3bad93de44804a47fad14c72
            SKIP)


prepare()
{
  cd $srcdir/$pkgname

  patch -Np0 -i ../posix-signals.patch
  patch -Np0 -i ../posix-implementation.patch
  patch -Np0 -i ../posix-supplement_to_ada_io.patch
  patch -Np0 -i ../posix-unsafe_process_primitives.patch
  patch -Np0 -i ../remove_redundant_parentheses_from-posix-signals.adb.patch
}


build() 
{
  cd $srcdir/$pkgname

  ./configure --prefix=$pkgdir/usr --with-build-type=Production
  
  PROCESSORS=$(nproc) \
  make
  
#  make rm-doc     # Requires gnatdoc, although gnatdoc breaks when building the docs.
}


package() 
{
  cd $srcdir/$pkgname

  make DESTDIR="$pkgdir/" install
  
  ## Add a 'lib_florist' GPR file for Alire compatability.
  #
  cp "$pkgdir"/usr/share/gpr/florist.gpr "$pkgdir"/usr/share/gpr/lib_florist.gpr
  
  sed -i -e 's/\blibrary project Florist\b/library project Lib_Florist/' \
         -e 's/^end Florist;/end Lib_Florist;/'                          \
         "$pkgdir"/usr/share/gpr/lib_florist.gpr
}