blob: 5404e182421e34eebf71af53745cf16f09b1a484 (
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
37
38
|
# Maintainer: Reverier-Xu <reverier.xu@woooo.tech>
pkgname=bitwave-git
_pkgname=bitwave-git
pkgver=v1.1.1.r0.g023759e
pkgrel=1
pkgdesc="A simple media player based on Qt and MPV."
arch=('x86_64')
url="https://github.com/Reverier-Xu/BitWave"
license=('MPL')
depends=('qt6-base' 'qt6-svg' 'qt6-translations' 'qt6-wayland' 'ffmpeg' 'mpv')
makedepends=('cmake' 'extra-cmake-modules' 'git')
provides=("BitWave")
conflicts=("bitwave-bin")
source=('git+https://github.com/Reverier-Xu/BitWave.git')
md5sums=('SKIP')
_name=BitWave
prepare() {
cd $_name
}
pkgver() {
cd $_name
git describe --long --tags | sed 's|^upstream/||;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build -S $_name \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
make -C build -j
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$_name"/desktop/tech.woooo.bitwave.desktop "$pkgdir"/usr/share/applications/tech.woooo.bitwave.desktop
install -Dm644 "$_name"/desktop/tech.woooo.bitwave.svg "$pkgdir"/usr/share/icons/hicolor/scalable/apps/tech.woooo.bitwave.svg
}
|