@dpeukert Sounds good. Here is the PKGBUILD I've been using. Feel free to copy it if you want.
pkgname=expresslrs-configurator
pkgver=1.6.0
pkgrel=1
pkgdesc="Cross platform configuration & build tool for the ExpressLRS radio link"
arch=('x86_64')
url="https://github.com/ExpressLRS/ExpressLRS-Configurator"
license=('GPL')
source=(
"https://github.com/ExpressLRS/ExpressLRS-Configurator/releases/download/v$pkgver/expresslrs-configurator-$pkgver.pacman"
)
sha512sums=('cc421ed74ffcafa17222747ed58d8353e0286ff0f45c129b5d3864f71ec52edca202164906d0adf7e829b177ea3391c5b59297d4157b21fdd19c4ee91be3e89b')
package() {
# Install the application files in /opt
install -d "${pkgdir}/opt"
cp -R "${srcdir}/opt/ExpressLRS Configurator" "${pkgdir}/opt/"
# Install the .desktop file
install -D -m644 "${srcdir}/usr/share/applications/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
# Install the icons
for icon_size in 16 24 32 48 64 96 128 256 512; do
icons_dir="/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"
install -d "${pkgdir}/${icons_dir}"
install -m644 "${srcdir}${icons_dir}/${pkgname}.png" \
"${pkgdir}${icons_dir}/${pkgname}.png"
done
# Make symlink in /usr/bin
install -d "${pkgdir}/usr/bin"
ln -s "/opt/ExpressLRS Configurator/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}
Pinned Comments
dpeukert commented on 2023-08-11 07:50 (UTC)
The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/main/expresslrs-configurator