blob: 4970e6cc55843dc88c5b528775386c832228c541 (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Maintainer: taotieren <admin@taotieren.com>
pkgbase=hbdsamples-git
pkgname=(hbdsamples{,-{instrument,smart-panel,smartbox}}-git)
pkgver=r91.880b127
pkgrel=1
pkgdesc="Samples for HybridOS 2.0"
arch=(any)
url="https://github.com/HybridOS2/HBDSamples"
license=('GPL-3.0')
groups=(hybridos2-git)
replaces=()
depends=(
hbdbus
hbdinetd
purc
xguipro)
makedepends=()
checkdepends=()
optdepends=()
source=("${pkgbase%-git}::git+${url}.git")
sha256sums=('SKIP')
options=('!strip')
pkgver() {
cd "${srcdir}/${pkgbase%-git}/"
# git describe --long --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
package_hbdsamples-git() {
depends=(hbdsamples-{instrument,smart-panel,smartbox}-git)
}
package_hbdsamples-instrument-git() {
pkgdesc+=" (hbdsamples-instrument)"
cd "${srcdir}/${pkgbase%-git}/"
local _pname=${pkgname#*-}
local _pname=${_pname%-*}
install -dm0755 ${pkgdir}/app
cp -rv ${_pname} ${pkgdir}/app/
install -Dm0755 /dev/stdin ${pkgdir}/usr/bin/${pkgname%-git} << EOF
#!/usr/bin/env bash
# Please run run-xguipro manually before running this script.
# 请先手动运行 run-xguipro 后再运行此脚本
cd /app/${_pname}/
purc -c socket -v index.hvml
EOF
}
package_hbdsamples-smart-panel-git() {
pkgdesc+=" (hbdsamples-smart-panel)"
cd "${srcdir}/${pkgbase%-git}/"
local _pname=${pkgname#*-}
local _pname=${_pname%-*}
install -dm0755 ${pkgdir}/app
cp -rv ${_pname} ${pkgdir}/app/
install -Dm0755 /dev/stdin ${pkgdir}/usr/bin/${pkgname%-git} << EOF
#!/usr/bin/env bash
# Please run run-xguipro manually before running this script.
# 请先手动运行 run-xguipro 后再运行此脚本
cd /app/${_pname}/
purc -c socket -v index.hvml
EOF
}
package_hbdsamples-smartbox-git() {
pkgdesc+=" (hbdsamples-smartbox)"
cd "${srcdir}/${pkgbase%-git}/"
local _pname=${pkgname#*-}
local _pname=${_pname%-*}
install -dm0755 ${pkgdir}/app
cp -rv ${_pname} ${pkgdir}/app/
install -Dm0755 /dev/stdin ${pkgdir}/usr/bin/${pkgname%-git} << EOF
#!/usr/bin/env bash
# Please run run-xguipro manually before running this script.
# 请先手动运行 run-xguipro 后再运行此脚本
hbdbusd
hbdinetd
cd /app/${_pname}/
purc -c socket -d remote -a cn.fmsoft.hybridos.settings -r radio -v index.hvml
EOF
}
|