blob: 53d871456e344b156a9247e3333c6e23f57a6a8b (
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=0.18
pkgrel=1
pkgdesc="Work-in-progress 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=("397355f69d32bf06149665a3a0dbd19a0728177ea5d59ccd82f669bfe302b170")
build() {
cd "$pkgname-$pkgver"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DGIT_TAG=v$pkgver .
make $MAKEFLAGS -j$(nproc)
}
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"
}
|