summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44dc381369ba6f32d707dea2e21fec31cf2826e0 (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
# Maintainer: Haruue Icymoon <haruue@caoyue.com.cn>

pkgname=firebird-nspire-git
pkgver=1.2.r81.g1f533db
pkgrel=1
pkgdesc='Community emulator of TI-Nspire calculators.'
arch=('i686' 'x86_64')
url='https://github.com/nspire-emus/firebird'
conflicts=('nspire_emu' 'firebird-nspire')
provides=('firebird-nspire')
license=('GPL3')
depends=()
makedepends=('qt5-declarative' 'git')
source=("${pkgname%-git}"::'git+https://github.com/nspire-emus/firebird')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname%-git}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${srcdir}/${pkgname%-git}"
  git submodule init
  git submodule update
}

build() {
  # Compile...
  cd "${srcdir}/${pkgname%-git}"
  mkdir -p build
  cd build
  qmake ..
  make
}

package() {
  # Install...
  cd "${srcdir}/${pkgname%-git}/build"
  INSTALL_ROOT="${pkgdir}" make install
}