blob: 124e6036c78cbfe439a55be86f25878b83d2db0b (
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
|
# Maintainer: Torge Matthies <openglfreak at googlemail dot com>
_pkgname=osu-handler
pkgname="$_pkgname-git"
pkgdesc='Provides a handler for osu! file formats (Git version)'
pkgver=0.3.0.r3.g4376b24
pkgrel=3
arch=(any)
license=(GPL3)
depends=(osu-mime glib2)
makedepends=(meson)
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
install='osu-handler-git.install'
source=('git+https://github.com/openglfreak/osu-handler-wine.git'
osu-file-extensions-handler.desktop
osu-url-handler.desktop)
sha256sums=('SKIP'
'd280e18bea335ebce642993d3f975dc644dfb367232c093277a09fd6e39d0120'
'f6e82a297061754ac363abd9caa25caccc1d8315de1831ee3d2e7d63bab17639')
pkgver() {
cd "$srcdir"
git -C osu-handler-wine describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir"
arch-meson osu-handler-wine 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'
}
|