kitty-tune-bin: new package
This commit is contained in:
1 parent
323fb5a92d
commit
eed6782d01
4 files changed
+132
No files matched your search
@@ -0,0 +1,57 @@
|
||||
# Maintainer: Felitendo
|
||||
# This PKGBUILD is updated automatically:
|
||||
# https://github.com/Felitendo/PKGBUILDS
|
||||
|
||||
pkgname=kitty-tune-bin
|
||||
pkgver=1.3.3
|
||||
pkgrel=1
|
||||
pkgdesc="SoundCloud and YouTube music player (upstream binary)"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/alan7383/KittyTuneDesktop"
|
||||
license=('MIT')
|
||||
# jpackage bundles Java and FFmpeg. These are the system libraries declared
|
||||
# by both upstream .debs, plus GTK for the bundled JRE's desktop integration.
|
||||
depends=('alsa-lib' 'brotli' 'bzip2' 'expat' 'fontconfig' 'freetype2'
|
||||
'gcc-libs' 'glibc' 'gtk3' 'hicolor-icon-theme' 'libbsd' 'libglvnd'
|
||||
'libmd' 'libpng' 'libx11' 'libxau' 'libxcb' 'libxdmcp' 'libxext'
|
||||
'libxi' 'libxrender' 'libxtst' 'xdg-utils' 'zlib')
|
||||
provides=("kitty-tune=${pkgver}")
|
||||
conflicts=('kitty-tune')
|
||||
options=('!strip' '!debug')
|
||||
# Upstream declares MIT in the README but ships no standalone license text.
|
||||
source=("${pkgname}-${pkgver}-README.md::https://raw.githubusercontent.com/alan7383/KittyTuneDesktop/v${pkgver}/README.md")
|
||||
source_x86_64=("${pkgname}-${pkgver}-x86_64.deb::https://github.com/alan7383/KittyTuneDesktop/releases/download/v${pkgver}/kitty-tune_${pkgver}_amd64.deb")
|
||||
source_aarch64=("${pkgname}-${pkgver}-aarch64.deb::https://github.com/alan7383/KittyTuneDesktop/releases/download/v${pkgver}/kitty-tune_${pkgver}_arm64.deb")
|
||||
noextract=("${pkgname}-${pkgver}-x86_64.deb" "${pkgname}-${pkgver}-aarch64.deb")
|
||||
sha256sums=('5681c64cc1c1b1ce285f70b4f9b9f0a72db34162e87e73d3966fec2a9adb5817')
|
||||
sha256sums_x86_64=('0440f01aa89371770da625ba4ce159422e903c0dc3867d7d45e8ed2b984ccbe3')
|
||||
sha256sums_aarch64=('a08244b65fb2a7e3944f8456e24fed09515f7cc9fddd74691896d67f2d6f91bd')
|
||||
|
||||
package() {
|
||||
bsdtar -xOf "$srcdir/${pkgname}-${pkgver}-${CARCH}.deb" 'data.tar.*' \
|
||||
| bsdtar -xpf - -C "$pkgdir" ./opt
|
||||
|
||||
install -d "$pkgdir/usr/bin"
|
||||
ln -s /opt/kitty-tune/bin/KittyTune "$pkgdir/usr/bin/kitty-tune"
|
||||
|
||||
# The .deb registers this through postinst, which pacman never executes.
|
||||
install -Dm644 "$pkgdir/opt/kitty-tune/lib/kitty-tune-KittyTune.desktop" \
|
||||
"$pkgdir/usr/share/applications/kitty-tune.desktop"
|
||||
sed -i \
|
||||
-e 's|^Exec=.*|Exec=kitty-tune|' \
|
||||
-e 's|^Icon=.*|Icon=kittytune|' \
|
||||
-e 's|^Categories=.*|Categories=AudioVideo;Audio;Player;|' \
|
||||
-e '/^MimeType=$/d' \
|
||||
"$pkgdir/usr/share/applications/kitty-tune.desktop"
|
||||
install -Dm644 "$pkgdir/opt/kitty-tune/lib/KittyTune.png" \
|
||||
"$pkgdir/usr/share/icons/hicolor/512x512/apps/kittytune.png"
|
||||
|
||||
install -Dm644 "$srcdir/${pkgname}-${pkgver}-README.md" \
|
||||
"$pkgdir/usr/share/licenses/$pkgname/README.md"
|
||||
install -Dm644 "$pkgdir/opt/kitty-tune/share/doc/copyright" \
|
||||
"$pkgdir/usr/share/licenses/$pkgname/copyright"
|
||||
|
||||
# The in-app updater installs upstream's differently named kitty-tune
|
||||
# package. The conflict above prevents an unattended replacement; use an
|
||||
# AUR helper to update kitty-tune-bin instead.
|
||||
}
|
||||
Reference in new issue
Block a user