blob: c9328ea0d0ae77dc731c55826ade9ced0a641d08 (
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
39
|
# Maintainer: n0vella <n0vella@outlook.com>
# This PKGBUILD compiles and installs the latest tag of the git repository
pkgname=cardo
pkgver=1.8.0
pkgrel=1
pkgdesc="Cardo podcast client"
arch=('x86_64')
url="https://github.com/cardo-podcast/cardo/"
license=('GPL-3.0-or-later')
groups=()
depends=('gtk3' 'webkit2gtk' 'sqlite')
makedepends=('git' 'cargo' 'pnpm' 'nodejs')
options=('!lto') # https://github.com/toeverything/AFFiNE/issues/6280#issuecomment-2041484627
provides=("cardo")
conflicts=("cardo")
source=("git+$url")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname}"
git tag -l --sort=-creatordate | head -n 1
}
prepare() {
cd "$srcdir/${pkgname}"
git checkout $pkgver
pnpm i
}
build() {
cd "$srcdir/${pkgname}"
pnpm run tauri build -b 'deb'
}
package() {
cp -rT "$srcdir/${pkgname}/src-tauri/target/release/bundle/deb/${pkgname}_${pkgver}_amd64/data" "$pkgdir"
}
|