blob: dc99065bb8a19d4db2ae93a9756d577b7a6dd98d (
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
|
pkgname=tmux-rime
pkgver=0.0.3
pkgrel=1
pkgdesc="rime for tmux"
arch=(i686 x86_64 arm aarch64)
url=https://github.com/Freed-Wu/$pkgname
license=(GPL3)
_version=9e39ee6a9c9a4c43192b95b7efcc95ea1c79a28d
source=(
"$url/archive/$pkgver.tar.gz"
https://github.com/xmake-io/xmake-repo/archive/$_version.tar.gz
)
depends=(librime glib2 tmux)
makedepends=(xmake)
sha256sums=(
'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
xmake g --network=private
xmake f --verbose
xmake
}
package() {
cd "$pkgname-$pkgver" || return 1
xmake install -o"$pkgdir/usr"
}
|