summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f1ab6c81996f0a1c7d14004be4db244e901101b (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
# Maintainer: Wisker <TheWisker@protonmail.com>
pkgname=emath
pkgbase=emath
pkgver=2.2.0
pkgrel=2
pkgdesc="Library for representing and operating abstract algebraic concepts"
arch=('x86_64')
url="https://github.com/TheWisker/EMath"
license=('GPL')
groups=()
depends=('ncurses' 'rapidjson' 'sfml' 'gcc' 'glibc')
makedepends=('meson' 'ninja' 'git')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=('usr/bin/polynomials.json')
options=()
install=
changelog=
source=('git+https://github.com/TheWisker/EMath')
noextract=()
sha256sums=('SKIP')

prepare() {
  mkdir "$srcdir/EMath/bin"
  cd "$srcdir/EMath"
  git submodule init && git submodule update
  meson setup --prefix="/usr" --bindir="/usr/bin" --includedir="/usr/include" --libdir="/usr/lib" --backend=ninja --buildtype=release --default-library=shared --optimization=3 --warnlevel=0 ./bin
}

build() {
  cd "$srcdir/EMath/bin"
  meson compile
}

check() {
  cd "$srcdir/EMath/bin"
  meson test -v
}

package() {
  cd "$srcdir/EMath/bin"
  meson install --destdir "$pkgdir/" --no-rebuild --strip
  echo "" > "$pkgdir/usr/bin/polynomials.json"
}