summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 742b125ec85474b2de23157c14c0416d9503e9b6 (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
# Maintainer: Vince <vince@ultrabanana.net>
pkgname=wxwabbitemu-git
pkgver=7b9ef9d
pkgrel=1
pkgdesc="A cross-platform TI-8x emulator based on Wabbitemu"
arch=("x86_64")
url="https://github.com/alberthdev/wxwabbitemu"
license=("custom")
depends=("wxgtk2")
source=("$pkgname::git+https://github.com/alberthdev/wxwabbitemu.git")
sha256sums=("SKIP")

pkgver() {
  cd "$pkgname"
  git rev-parse --short HEAD
}

build() {
  # linkage errors when built with optimizations
  export CFLAGS="${CFLAGS//-O*}"
  
  cd "$pkgname"
  make
}

package() {
  install -Dm755 "$pkgname/bin/wxWabbitemu" "$pkgdir/usr/bin/wxwabbitemu"
  install -Dm644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}