blob: 750225087b88d53f80b6f47cb0a5b1c12902abfb (
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
|
# Maintainer: Mohammadreza Khani
pkgname=dicto
pkgver=0.6.0
pkgrel=1
pkgdesc="Minimal native dictionary app for MDX/MDD files"
arch=('x86_64')
url="https://github.com/mohamadkhani/dicto"
license=('AGPL-3.0-or-later')
depends=(
'gtk3'
'alsa-lib'
'libxkbcommon'
'xdotool'
'hicolor-icon-theme'
)
makedepends=(
'cargo'
'git'
'rust'
'clang'
'pkgconf'
)
optdepends=(
'vulkan-driver: GPU rendering'
'vulkan-intel: Intel GPU support'
)
options=(!lto)
source=("$pkgname-$pkgver.tar.gz::https://github.com/mohamadkhani/dicto/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('SKIP')
build() {
cd "$srcdir/dicto-${pkgver}"
export CARGO_TARGET_DIR="$srcdir/dicto-${pkgver}/target"
cargo build --release --package dicto
}
package() {
cd "$srcdir/dicto-${pkgver}"
install -Dm755 "$srcdir/dicto-${pkgver}/target/release/dicto" \
"$pkgdir/usr/bin/dicto"
install -Dm644 "$srcdir/dicto-${pkgver}/packaging/arch/dicto.desktop" \
"$pkgdir/usr/share/applications/dicto.desktop"
install -Dm644 assets/icon.svg \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/dicto.svg"
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|