summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b47a9972c8e86f3866ed8bc6e2b3bccc4fbabb78 (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: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d>

_pkgname=sidef
pkgname=sidef-git
pkgver=2.32.12.g96afafe
pkgrel=1
pkgdesc="A modern object-oriented programming language. (-git version)"
arch=('any')
url="https://github.com/trizen/sidef"
license=('GPLv3')

provides=('sidef')
conflicts=('sidef')

makedepends=('git')
depends=('perl>=5.22.0' 'perl-data-dump' 'perl-math-gmpq>=0.41' 'perl-math-gmpz>=0.39' 'perl-math-mpfr>=3.29' 'perl-math-mpc' 'perl-math-prime-util-gmp')

source=('git://github.com/trizen/sidef.git')
md5sums=('SKIP')

pkgver() {
    cd $_pkgname
    git describe --always | sed -e 's|-|.|g'
}

package() {
    cd "$_pkgname"

    #perl Build.PL --destdir "$pkgdir" --installdirs vendor
    #./Build
    #./Build test
    #./Build install --install_path script=/usr/bin

    perl Makefile.PL DESTDIR="$pkgdir" INSTALLDIRS=vendor INSTALLVENDORSCRIPT="/usr/bin"
    make &&
    make test &&
    make install

    #cd "share/sidef"
    #for i in *
    #do
    #    install -Dm644 "$i" "$pkgdir/usr/share/$pkgname/$i"
    #done
}