summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e57273d31e1103f7f5fc458001d439b7fa9ec363 (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
# Maintainer: Torge Matthies <openglfreak at googlemail dot com>

pkgname=osu-handler
pkgdesc='Provides a handler for osu! file formats'
pkgver=0.3.0
pkgrel=5
arch=(any)
license=(GPL3)
url='https://github.com/openglfreak/osu-handler-wine'
depends=(osu-mime glib2)
makedepends=(meson)
install='osu-handler.install'
source=("https://github.com/openglfreak/osu-handler-wine/archive/refs/tags/v${pkgver}.tar.gz"
        osu-file-extensions-handler.desktop
        osu-url-handler.desktop)
sha256sums=('027a4cfc3f0e83d0ecd10958261c353df7d7a119895ba8c48437865ffcf88df3'
            'd280e18bea335ebce642993d3f975dc644dfb367232c093277a09fd6e39d0120'
            'f6e82a297061754ac363abd9caa25caccc1d8315de1831ee3d2e7d63bab17639')

build() {
    cd "$srcdir"

    arch-meson "osu-handler-wine-${pkgver}" build --unity on -D b_ndebug=true
    meson compile -C build
}

package() {
    cd "$pkgdir"

    install -D -m755 "$srcdir/build/osu-handler-wine" 'usr/lib/osu-handler/osu-handler-wine'
    install -D -m644 "$srcdir/osu-file-extensions-handler.desktop" 'usr/share/applications/osu-file-extensions-handler.desktop'
    install -D -m644 "$srcdir/osu-url-handler.desktop" 'usr/share/applications/osu-url-handler.desktop'
}