summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8cc83fb0debb72bf2043ce5164c061fe7518f216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=quick-lookup
pkgver=2.0.0
pkgrel=2
pkgdesc="Simple GTK dictionary application powered by Wiktionary"
arch=('any')
url="https://github.com/johnfactotum/quick-lookup"
license=('GPL3')
depends=('gjs' 'gtk4' 'libadwaita' 'webkit2gtk-5.0')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('0732444db4abed0c7a24caf4bd385876a57a4d98682775483c0f835521aed046')

package() {
  _name='com.github.johnfactotum.QuickLookup'

  cd "$pkgname-$pkgver"
  install -Dm755 "$pkgname.js" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 "$_name.desktop" -t "$pkgdir/usr/share/applications"
  install -Dm644 "$_name.svg" -t "$pkgdir/usr/share/icons/hicolor/scalable/apps"
  install -Dm644 "$_name-symbolic.svg" -t \
    "$pkgdir/usr/share/icons/hicolor/symbolic/apps"
  install -Dm644 "$_name.gschema.xml" -t "$pkgdir/usr/share/glib-2.0/schemas"
}