diff options
author | Marin | 2020-11-04 11:23:54 +0100 |
---|---|---|
committer | Marin | 2020-11-04 11:23:54 +0100 |
commit | 282862ca988588da90f847b514191ab0110d6176 (patch) | |
tree | 886e7ac2a603ae89baa3a9f12d1aafe7cc15cbd6 | |
download | aur-282862ca988588da90f847b514191ab0110d6176.tar.gz |
Initial push to AUR
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9dfcc8232083 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = songrec + pkgdesc = An open-source, unofficial Shazam client for Linux, written in Rust. + pkgver = 0.1.2 + pkgrel = 1 + url = https://github.com/marin-m/SongRec + arch = x86_64 + license = GPL3 + makedepends = cargo + makedepends = rust + makedepends = git + depends = gtk3 + depends = alsa-lib + depends = openssl + source = songrec-0.1.2.tar.gz::https://github.com/marin-m/songrec/archive/0.1.2.tar.gz + sha256sums = 76147922fbafad2093dbc21f03f111002691489c4fcfecf0c5dd4c978b858811 + +pkgname = songrec diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..14be06369a8d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +pkgname=songrec +pkgver=0.1.2 +pkgrel=1 +pkgdesc='An open-source, unofficial Shazam client for Linux, written in Rust.' +url='https://github.com/marin-m/SongRec' +arch=('x86_64') +license=('GPL3') +makedepends=('cargo' 'rust' 'git') +depends=('gtk3' 'alsa-lib' 'openssl') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/marin-m/songrec/archive/${pkgver}.tar.gz") +sha256sums=('76147922fbafad2093dbc21f03f111002691489c4fcfecf0c5dd4c978b858811') + +build() { + cd "$pkgname-$pkgver" + cargo build --release +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 "target/release/songrec" "$pkgdir/usr/bin/songrec" + install -Dm755 "packaging/rootfs/usr/share/applications/com.github.marinm.songrec.desktop" "$pkgdir/usr/share/applications/com.github.marinm.songrec.desktop" + install -Dm755 "packaging/rootfs/usr/share/icons/hicolor/scalable/apps/com.github.marinm.songrec.svg" \ + "$pkgdir/usr/share/applications/icons/hicolor/scalable/apps/com.github.marinm.songrec.svg" + install -Dm755 "packaging/rootfs/usr/share/metainfo/com.github.marinm.songrec.metainfo.xml" \ + "$pkgdir/usr/share/applications/metainfo/com.github.marinm.songrec.meteainfo.xml" + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |