summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f873f2b183dab60d8246608efa2519e5283df73b (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
# Maintainer: Pierre-Marie de Rodat <pmderodat on #ada at freenode.net>

pkgname=gnatcoll-iconv-git
pkgver=r2796.8160d1d9
pkgrel=1

pkgdesc='GNAT Components Collection - Bindings to Libiconv'
url='https://github.com/AdaCore/gnatcoll-bindings/'
arch=('i686' 'x86_64')
license=('GPL')

depends=('gcc-ada' 'libiconv' 'gnatcoll-core')
makedepends=('git' 'gprbuild')

provides=('gnatcoll-iconv')
conflicts=('gnatcoll-iconv' 'gnatcoll')

source=('git+https://github.com/AdaCore/gnatcoll-bindings.git')
sha1sums=('SKIP')

pkgver() {
    cd "$srcdir/gnatcoll-bindings"
    printf "r%s.%s" \
        "$(git rev-list --count HEAD)" \
        "$(git rev-parse --short HEAD)"
}

prepare()
{
    cd "$srcdir/gnatcoll-bindings"
}

build()
{
    cd "$srcdir/gnatcoll-bindings/iconv"
    python2 setup.py build -j$(nproc) --prefix=/usr --gpr-opts -R
}

package()
{
    cd "$srcdir/gnatcoll-bindings/iconv"

    python2 setup.py install --prefix="$pkgdir/usr"
}