blob: 69a827ebd5fae121b004865004b8c6fef3ee25d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: kraxarn <me@kraxarn.com>
pkgname=spotify-qt
pkgver=2.1
pkgrel=1
pkgdesc="Lightweight Spotify client using Qt"
arch=(x86_64)
url="https://github.com/kraxarn/spotify-qt"
license=("GPL3")
depends=(qt5-base qt5-svg hicolor-icon-theme)
makedepends=(git cmake gcc make)
optdepends=("spotifyd: Recommended playback client")
source=("$url/archive/v${pkgver}.tar.gz")
sha256sums=("e9425867a81d2289e6b9af14cc5de620c9c62486edbcb02cbd3729b8cf1ae7c0")
build() {
cd "$pkgname-$pkgver"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DGIT_TAG=v$pkgver .
make $MAKEFLAGS
}
package() {
cd "$pkgname-$pkgver"
# Install app
make DESTDIR="$pkgdir" install
# Install icons
sizes=(16 24 32 48 64 96 128 256 512)
for size in ${sizes[*]}
do
install -Dm644 "res/app/${size}.png" "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/spotify-qt.png"
done
install -Dm644 "res/logo/spotify-qt.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/spotify-qt.svg"
# Install desktop shortcut
install -Dm644 "res/app/spotify-qt.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
|