summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eade3d913d7c961a0d6420fce2b2750d033fdd34 (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
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=beat
pkgver=03
pkgrel=2
pkgdesc='Delta patcher for the higan emulator'
arch=('i686' 'x86_64')
url='http://byuu.org/tool/beat'
license=('GPL3')
depends=('gtk2')
makedepends=('gendesk')
source=("http://files.byuu.org/download/beat_v${pkgver}.tar.xz")
sha256sums=('0f4a33cbbe54af28077433ca9f855e5d80ae942d5d976a0d654a8e1a528a1a1a')

prepare() {
  gendesk -n --pkgname 'beat' --pkgdesc "${pkgdesc}" --name='beat' --exec='beat'
}

build() {
  cd beat

  make \
    platform='x' \
    phoenix='gtk' \
    compiler='g++' \
    flags="$CXXFLAGS -I.. -fomit-frame-pointer -std=gnu++11" \
    link='-s -lX11'
}

package() {
  cd beat

  install -dm 755 "${pkgdir}"/usr/{bin,share/applications}
  install -m 755 beat "${pkgdir}"/usr/bin/beat
  install -m 644 ../beat.desktop "${pkgdir}"/usr/share/applications/beat.desktop
}

# vim: ts=2 sw=2 et: