summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3324017ab99524ea65b058a991710ded25978b90 (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
# Maintainer: Tetsumi <tetsumi@vmail.me>
# Contributor: Boris Shomodjvarac <spam AT shomodj DOT com>

pkgname=qore
pkgver=0.8.12.3
pkgrel=1
epoch=
pkgdesc="Qore is a high-level, general-purpose, interpreted, dynamic programming language"
arch=("i686" "x86_64")
url="http://www.qore.org/"
license=('GPL2', "LGPL2")
groups=()
depends=("flex" "openssl" "pcre" "bzip2" "zlib" "bison")
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/qorelanguage/qore/releases/download/release-$pkgver/qore-$pkgver.tar.bz2")
md5sums=('75442325f2d878bc689a29aa13c08f1f')
noextract=()

build() {
  cd "$srcdir/$pkgname-$pkgver"

  sed 's/LIBSUFFIX=64/LIBSUFFIX=""/g' configure -i

  _CONFIGURE_OPTS="--prefix=/usr --disable-static --disable-debug"
  [ "$CARCH" = "x86_64" ] && _CONFIGURE_OPTS="$_CONFIGURE_OPTS --enable-64bit"

  echo "./configure $_CONFIGURE_OPTS"
  ./configure $_CONFIGURE_OPTS
  make
}

check() {
  cd "$srcdir/$pkgname-$pkgver"
  make -k check
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}