Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package fretboard #427

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aur/packages
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ faustlive
fluida.lv2
fogpad
freemajor
fretboard
glasscoder
gnome-shell-extension-gsjackctl
hpklinux
Expand Down
6 changes: 6 additions & 0 deletions nvchecker/archlinux-proaudio.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ use_max_tag = true
include_regex = '^v\d+(\.\d+)+$'
prefix = "v"

[fretboard]
source = "github"
github = "bragefuglseth/fretboard"
use_max_tag = true
prefix = "v"

[glasscoder]
source = "github"
github = "ElvishArtisan/GlassCoder"
Expand Down
1 change: 1 addition & 0 deletions nvchecker/old_ver.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"fluida.lv2": "0.9.2",
"fogpad": "1.0.0",
"freemajor": "1.0",
"fretboard": "7.0",
"glasscoder": "2.0.1",
"gnome-shell-extension-gsjackctl": "2",
"hpklinux": "4.20.43",
Expand Down
1 change: 1 addition & 0 deletions packages/fretboard/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/fretboard
31 changes: 31 additions & 0 deletions packages/fretboard/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Maintainer: OSAMC <https://github.com/osam-cologne/archlinux-proaudio>
# Contributor: Florian Hülsmann <[email protected]>

pkgname=fretboard
pkgver=7.0
pkgrel=1
pkgdesc='Simple guitar chord lookup tool'
arch=(aarch64 x86_64)
url='https://apps.gnome.org/Fretboard/'
license=(GPL-3.0-or-later)
groups=(pro-audio)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it makes sense to add gnome-extra since it's featured on https://apps.gnome.org/

depends=(gtk4)
makedepends=(blueprint-compiler git libadwaita meson rust)
source=("git+https://github.com/bragefuglseth/$pkgname#tag=v$pkgver-fixed")
sha256sums=('1125cbfc343c05a1cd2ca91c6cbeda6cb2e3f237e77ee841f500fe8c252b65e4')

build() {
export RUSTUP_TOOLCHAIN=stable
# https://github.com/bragefuglseth/fretboard/issues/51
arch-meson --reconfigure -Dsandboxed=true -Dprofile=development $pkgname build
Comment on lines +26 to +27
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I'm configuring a debug build and relying on makepkg's binary optimizations just so the build is reproducible. This increases the package + install size by ~300 kB and ~1,3 MB, respectively but that's fine IMO until we find a way to make cargo --release output reproducible.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nvm, it just randomly worked for 1 run

meson compile -C build
}

check() {
meson test -C build --print-errorlogs
}

package() {
depends+=(libadwaita-1.so)
meson install -C build --destdir "$pkgdir"
}
6 changes: 3 additions & 3 deletions tools/build-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ cat tools/pacman.conf >> /etc/pacman.conf
cat tools/makepkg.conf >> /etc/makepkg.conf
source /etc/makepkg.conf
export PACKAGER
export SRCDEST=${SRCDEST:-/tmp/build}
export SRCPKGDEST=/tmp/build
export SRCDEST=${SRCDEST:-/tmp/src}
export SRCPKGDEST=/tmp/srcpkg
export BUILDDIR=/tmp/build
export PKGDEST=${PKGDEST:-/tmp/build}
export PKGDEST=${PKGDEST:-/tmp/pkg}
export LOGDEST=${LOGDEST:-$PKGDEST}
export SOURCE_DATE_EPOCH=${DRONE_BUILD_CREATED:-${DRONE_BUILD_STARTED:-$(date +%s)}}
export HOME=/tmp
Expand Down