blob: aa12c673ee1dfc3a9ed19b47dfea087c9e8ce843 (
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
|
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: n0vella <n0vella@outlook.com>
pkgname=cardo-git
pkgver=1.7.0.r0.geea8258
pkgrel=1
pkgdesc='Podcast client inspired by the Antennapod Android app'
arch=(x86_64)
url=https://cardo-podcast.github.io
license=(GPL-3.0-or-later)
depends=(gtk3 sqlite webkit2gtk)
makedepends=(cargo git jq nodejs pnpm)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
options=('!lto') # See https://github.com/toeverything/AFFiNE/issues/6280#issuecomment-2041484627
source=("$pkgname::git+https://github.com/cardo-podcast/cardo.git")
sha256sums=('SKIP')
pkgver() {
git -C $pkgname describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
pnpm install --dir $pkgname
}
build() {
pnpm run --dir $pkgname tauri build --bundles deb
}
package() {
local version
version="$(jq --raw-output '.package.version' $pkgname/src-tauri/tauri.conf.json)"
version="${version:-VERSION_NOT_FOUND}"
cp -rT "$pkgname/src-tauri/target/release/bundle/deb/${pkgname%-git}_${version}_amd64/data" "$pkgdir"
}
|