summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a2dd949203de121f931b1933d0c464fd548a003 (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

# Maintainer: Jimmy Brisson <theotherjimmy@gmail.com>
pkgname=python2-qtlc3-git
pkgrel=2
pkgver=r119.25b0d84
pkgdesc="A python and C++ LC-3 simulator frontend in QT"
arch=('any')
url="http://github.com/theotherjimmy/pylc3"
license=('GPL')
depends=('boost' 'boost-libs' 'python2' 'qt4' 'python2-pylc3-git')
makedepends=('git' 'boost' 'boost-libs' 'python2' 'qt4' 'python2-pylc3-git' 'qt5-base' 'qtchooser')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname}::git+https://github.com/mbartling/QtLC3.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-VCS}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-VCS}"
  qmake
	make
}

package() {
	cd "$srcdir/${pkgname%-VCS}"
  mkdir -p ${pkgdir}/usr/bin
  install LC3Sim ${pkgdir}/usr/bin/qtlc3
  mkdir -p ${pkgdir}/usr/bin/help
  cp -r help ${pkgdir}/usr/bin/help
}