blob: e1d8e569f16829a0c1a6713c009e73e0d79516be (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: Core_UK <mail.coreuk@gmail.com>
pkgname=cider-git
_pkgname=Cider
_pkgbranch=main
pkgver=1.5.6
pkgrel=3
pkgdesc="Project Cider. An open-source Apple Music client built from the ground up with Vue.js and Electron. Compiled from the GitHub repositories main branch."
arch=("armv7h" "i686" "x86_64")
url="https://github.com/ciderapp/${_pkgname}.git"
license=("GPL")
depends=('gtk3' 'nss')
makedepends=('git' 'npm' 'yarn')
optdepends=('libnotify: Playback notifications')
provides=('cider')
conflicts=('cider')
source=(
"git+https://github.com/CiderApp/${_pkgname}.git#branch=${_pkgbranch}"
"cider.desktop"
)
sha256sums=('SKIP'
'c41e9b1019411019fce8509e32f770edf33c9e864bf707c30ffe2e3f2dcf1571')
pkgver() {
cd "$srcdir/$_pkgname"
GITHUB_REF_NAME=${_pkgbranch} ./resources/version.sh | sed 's/\-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
echo "Building ${_pkgname} on v${pkgver} : [Install Build Dependencies] | Build | Done"
# yarn install --non-interactive --pure-lockfile --cache-folder "${srcdir}/yarn-cache"
pnpm install --shamefully-hoist
echo "Building : Install Build Dependencies | [Build] | Done"
if [[ ${CARCH} == "armv7h" ]]; then
pnpm tsc && pnpm compile-less && pnpm electron-builder build --armv7l --linux dir
elif [[ ${CARCH} == "i686" ]]; then
pnpm tsc && pnpm compile-less && pnpm electron-builder build --ia32 --linux dir
elif [[ ${CARCH} == "x86_64" ]]; then
pnpm tsc && pnpm compile-less && pnpm electron-builder build --x64 --linux dir
fi
echo "Building : Install Build Dependencies | Build | [Done]"
}
package() {
cd "${srcdir}/${_pkgname}"
echo "Packaging : [Desktop Shortcut] | Icon | Build Files | Other Files | Done"
install -Dm644 "${srcdir}/${pkgname%-git}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop"
echo "Packaging : Desktop Shortcut | [Icon] | Build Files | Other Files | Done"
install -Dm644 "${srcdir}/${_pkgname}/resources/icons/icon.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${pkgname%-git}.png"
echo "Packaging : Desktop Shortcut | Icon | [Build Files] | Other Files | Done"
install -d "$pkgdir/opt/"
install -d "$pkgdir/usr/bin/"
cd ${srcdir}/${_pkgname}/dist/linux-unpacked
mkdir "${pkgdir}/opt/${pkgname%-git}"
cp -r --preserve=mode * "${pkgdir}/opt/${pkgname%-git}"
ln -sf "/opt/${pkgname%-git}/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
echo "Packaging : Desktop Shortcut | Icon | Build Files | [Other Files] | Done"
install -d "$pkgdir/usr/share/licenses" "$pkgdir/usr/share/doc"
install -Dm644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${srcdir}/${_pkgname}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
echo "Packaging : Desktop Shortcut | Icon | Build Files | Other Files | [Done]"
}
|