summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f24f6ff593877f97f5537035bc24bef6e07ae006 (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
# Maintainer: Your Maksim <maxgoonfuture@gmail.com>
pkgname=mcalc
pkgver=3.0.0
pkgrel=6
pkgdesc="MCalc - calculator for performing simple mathematical operations in all existing number systems"
arch=('x86_64')
url="https://github.com/nesterovmaxim31/MCalc"
license=('MIT')
depends=(qt5-base)
makedepends=(git gcc extra-cmake-modules cmake)
changelog=
source=("$pkgname-$pkgver::https://github.com/nesterovmaxim31/MCalc/archive/v$pkgver.tar.gz")
# md5sums=('eb51403ae0d243c321fd63e62f3963df')
md5sums=('SKIP')



build() {
  cd "MCalc-$pkgver"
  cmake . && make
}


package() {
  mkdir -p "$pkgdir/usr/bin"
  cp "$srcdir/MCalc-$pkgver/mcalc" "$pkgdir/usr/bin/mcalc"
  chmod +x "$pkgdir/usr/bin/mcalc"
  # --------------------------------------------------------------------------------------------------------
  install -Dm644 "$srcdir/MCalc-$pkgver/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
  install -Dm644 "$srcdir/MCalc-$pkgver/$pkgname.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
}