summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56b7a99236f73e85a2a78ae3bacd52d8c2252b47 (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
42
# Maintainer: badcast <lmecomposer@gmail.com>
_pkgbase="epic-piano-instrument"
pkgname=${_pkgbase}
pkgver=1.0.0
pkgrel=2
url="https://github.com/badcast/${_pkgbase}"
pkgdesc="Epic Piano - The virtual instrument based on the RoninEngine framework that allows you to unleash your creative potential and craft music of epic proportions."
arch=(x86_64)
license=('GPLv3')
depends=('ronin-engine')
makedepends=('cmake' 'gcc' 'make' 'pkgconf')
source=("git+${url}.git"
        "${_pkgbase}.desktop"
        "${_pkgbase}-icon.png")
sha256sums=('SKIP'
         '2adf312c50b41c2b46d3d887da45cc4bf3ce50e16d9520249780c85c287fde49'
         '8434f3dfe581ff89f222b6eb6c8bc3f847c4e20bc2153ea6778d550899c15be4')

build(){
   # Environment
   cd "${srcdir}/${_pkgbase}"
   build_dir="${srcdir}/build"

   # Configuring
   cmake -S . -B "${build_dir}" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr

   # Build
   cmake --build "${build_dir}"
}

package(){
   # Environment
   cd "${srcdir}/${_pkgbase}"
   build_dir="${srcdir}/build"

   DESTDIR="${pkgdir}" cmake --install "${build_dir}"

   chmod 755 "${pkgdir}/usr/bin/${_pkgbase}"
   install -Dm644 "${srcdir}/${_pkgbase}.desktop" -t "${pkgdir}/usr/share/applications"
   install -Dm644 "${srcdir}/${_pkgbase}-icon.png" -t "${pkgdir}/usr/share/icons"
   install -Dm644 "${srcdir}/${_pkgbase}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgbase}/LICENSE"
}