summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b37f7a3a215779abf3039eb73d996514c64e35c (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
# Maintainer: Musagy <diegomusagy@gmail.com>
pkgname=hypremoji
pkgver=1.0.2
pkgrel=1
pkgdesc="A modern emoji picker for Hyprland, written in Rust + GTK4"
arch=('x86_64')
url="https://github.com/Musagy/hypremoji"
license=('ISC')
depends=(
  'gtk4'
  'noto-fonts-emoji'
  'wl-clipboard'  # provides wl-copy, wl-paste
  'hyprland'      # needed for hyprctl
)
makedepends=('git' 'rust' 'cargo')
source=("$pkgname::git+$url")
sha256sums=('SKIP')
provides=("$pkgname")
conflicts=("$pkgname")
options=(!debug)
install=$pkgname.install

prepare() {
  cd "$pkgname"
  echo "✓ Preparing build environment..."
}

build() {
  cd "$pkgname"
  cargo build --release
}

package() {
  cd "$pkgname"

  install -Dm755 "target/release/hypremoji" "$pkgdir/usr/bin/hypremoji"

  install -d "$pkgdir/usr/share/hypremoji/assets"
  cp -r assets/* "$pkgdir/usr/share/hypremoji/assets/"

  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm755 "setting_in_hyprland_config.sh" "$pkgdir/usr/share/hypremoji/setting_in_hyprland_config.sh"
}