blob: b9b8dad9b1bde343b32cd6076cd4e9e0a082b2d9 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=emojimart
pkgver=0.3.0
pkgrel=1
pkgdesc="Modern emoji picker popup for desktop"
arch=('x86_64')
url="https://github.com/vemonet/EmojiMart"
license=('MIT')
depends=(
'gtk3'
'webkit2gtk-4.1'
)
makedepends=(
'cargo'
'npm'
'yarn'
)
optdepends=(
'xdotool: automatically paste to your currently focused app (X11)'
'ydotool: automatically paste to your currently focused app (Wayland)'
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('7f4bdaa9e4f46be73a40cdd9312d8146e1cccbdede4f8dbc325631065a35bd4b')
prepare() {
cd "EmojiMart-$pkgver"
export YARN_CACHE_FOLDER="$srcdir/yarn-cache"
export RUSTUP_TOOLCHAIN=stable
yarn install
# Desktop file
desktop-file-edit --set-key=Exec --set-value="$pkgname" --set-icon="$pkgname" \
resources/EmojiMart.desktop
cd src-tauri
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
# Don't bundle AppImage
sed -i 's/"targets": "all",/"targets": "deb",/g' tauri.conf.json
}
build() {
cd "EmojiMart-$pkgver"
export YARN_CACHE_FOLDER="$srcdir/yarn-cache"
export RUSTUP_TOOLCHAIN=stable
yarn build
yarn tauri build
}
package() {
cd "EmojiMart-$pkgver"
install -Dm755 src-tauri/target/release/emoji-mart-app "$pkgdir/usr/bin/$pkgname"
for i in 32x32 128x128 128x128@2x; do
install -Dm644 src-tauri/icons/${i}.png \
"$pkgdir/usr/share/icons/hicolor/${i}/apps/$pkgname.png"
done
install -Dm644 src-tauri/icons/icon.png \
"$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png"
install -Dm644 resources/EmojiMart.desktop \
"$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|