[arch-commits] Commit in songrec/repos (community-x86_64 community-x86_64/PKGBUILD)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Tue Sep 7 22:24:47 UTC 2021
Date: Tuesday, September 7, 2021 @ 22:24:47
Author: orhun
Revision: 1012048
archrelease: copy trunk to community-x86_64
Added:
songrec/repos/community-x86_64/
songrec/repos/community-x86_64/PKGBUILD
(from rev 1012047, songrec/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: songrec/repos/community-x86_64/PKGBUILD (from rev 1012047, songrec/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-09-07 22:24:47 UTC (rev 1012048)
@@ -0,0 +1,51 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+
+_pkgname=SongRec
+pkgname=songrec
+pkgver=0.2.0
+pkgrel=3
+pkgdesc='An open-source, unofficial Shazam client for Linux'
+arch=('x86_64')
+url='https://github.com/marin-m/SongRec'
+license=('GPL3')
+makedepends=('rust' 'pkgconf' 'git')
+depends=('gtk3' 'alsa-lib' 'openssl' 'ffmpeg')
+optdepends=('libpulse: PulseAudio support')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha256sums=('46bba562dde437c623a3a7f7296ef852507cf7a1b0872bddd1398f68506781f6')
+
+prepare() {
+ cd "$_pkgname-$pkgver"
+ cargo fetch --locked
+}
+
+build() {
+ cd "$_pkgname-$pkgver"
+ cargo build --release --frozen
+}
+
+check() {
+ cd "$_pkgname-$pkgver"
+ cargo test --frozen
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ install -Dm 755 "target/release/songrec" "$pkgdir/usr/bin/songrec"
+
+ install -Dm 755 "packaging/rootfs/usr/share/applications/com.github.marinm.songrec.desktop" \
+ "$pkgdir/usr/share/applications/com.github.marinm.songrec.desktop"
+
+ install -Dm 755 "packaging/rootfs/usr/share/icons/hicolor/scalable/apps/com.github.marinm.songrec.svg" \
+ "$pkgdir/usr/share/icons/hicolor/scalable/apps/com.github.marinm.songrec.svg"
+
+ install -Dm 755 "packaging/rootfs/usr/share/metainfo/com.github.marinm.songrec.metainfo.xml" \
+ "$pkgdir/usr/share/metainfo/com.github.marinm.songrec.metainfo.xml"
+
+ mkdir -p "$pkgdir/usr/share/songrec"
+ cp -ra "translations" "$pkgdir/usr/share/songrec/translations"
+
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list