blob: 183b27b293464caa162dab09ca73338818c3974f (
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
|
pkgname=rl_custom_rime
pkgver=0.0.2
pkgrel=1
pkgdesc="rime for readline"
arch=(i686 x86_64 arm aarch64)
url=https://github.com/Freed-Wu/$pkgname
license=(GPL3)
_v=0.0.3
_version=9e39ee6a9c9a4c43192b95b7efcc95ea1c79a28d
source=(
"$url/archive/$pkgver.tar.gz"
"https://github.com/Freed-Wu/tmux-rime/archive/$_v.tar.gz"
"https://github.com/xmake-io/xmake-repo/archive/$_version.tar.gz"
)
depends=(librime glib2 readline rl_custom_function)
makedepends=(xmake)
sha256sums=('41088dc9a03a53a0c2a99f2e1e0687b8a44059261cf5dba63dadc87db2de2696'
'012d1b8e8fe265fbd927af113fa7d54fc8704a449f9b86904767fe20378bea81'
'f4a75ea7b86ed7b652e514337746ea0232f88513ec6ab61a3c687a91b31d4a3c')
export XMAKE_ROOT=y
build() {
# https://github.com/xmake-io/xmake/discussions/5699
HOME=$PWD PATH=$HOME:$PATH
echo -e "#!$SHELL\necho I am git" >$HOME/git
chmod +x $HOME/git
install -d .xmake/repositories
ln -sf ../../"xmake-repo-$_version" .xmake/repositories/xmake-repo
cd "$pkgname-$pkgver" || return 1
ln -s ../"tmux-rime-$_v" tmux-rime
xmake g --network=private
xmake f --verbose
xmake
}
package() {
cd "$pkgname-$pkgver" || return 1
xmake install -o"$pkgdir/usr"
}
|