summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b2a4e4dadd67eaa7e4910a3f9b606a1478d3d5f (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
# Maintainer: Popolon <popolon@popolon.org>

pkgname=mathmod
pkgver=12.0
pkgrel=1
pkgdesc="modelisation and manipulation of mathematics objects"
arch=('x86_64' 'armv7h' 'aarch64' 'riscv32' 'riscv64' 'loong64' 'powerpc' 'powerpc64le' 'powerpc64')
url="https://github.com/parisolab/mathmod/"
license=('GPLv2')
depends=('qt5-base')
source=(https://github.com/parisolab/${pkgname}/archive/${pkgver}.tar.gz
        MathMod.desktop)
sha256sums=('5758423f87ec71da9afe86e250127f62d74d44a6a3131b6da99c9d830eafb300'
            '6c001dae8ae8c1f6a4aaef7bf2d098a058c1e944dbf01642ea9792926b7204e9')

prepare() {
  cd $pkgname-$pkgver
  qmake
}
build() {
  cd $pkgname-$pkgver
  make
}

package() {

  cd $pkgname-$pkgver
  make install DESTDIR="$pkgdir" PREFIX=/usr
  install -Dm 755 "MathMod" "${pkgdir}/usr/bin/MathMod"
  install -Dm 644 "images/icone32x32.png" "${pkgdir}/usr/share/icons/MathMod.png"
  install -Dm 644 "Licence.txt" "${pkgdir}/usr/share/licenses/${pkgname}/Licence.txt"
  cd -
  install -Dm 644 "MathMod.desktop" "${pkgdir}/usr/share/applications/MathMod.desktop"

}