Krolyxon
Tag v0.1.1

Branches

Tags

Refs →

remagecontribPKGBUILD

41 lines · 1.7 KB · Bourne Again Shell (bash)

1# Maintainer: krolyxon <me@krolyxon.com>
2pkgname=remage-bin
3_pkgname=remage
4pkgver=0.1.0
5pkgrel=1
6pkgdesc='Keyboard-centric, GPU-rendered image viewer with vim keys and wallpaper theming'
7arch=('x86_64')
8url='https://github.com/krolyxon/remage'
9license=('AGPL-3.0-only' 'OFL-1.1')
10depends=('gcc-libs' 'glibc' 'dav1d' 'libheif' 'libxkbcommon' 'wayland' 'vulkan-icd-loader')
11optdepends=(
12 'libx11: X11 support'
13 'libxcursor: X11 cursors'
14 'libxi: X11 input'
15 'libxrandr: X11 scaling'
16 'mesa: OpenGL fallback'
17 'imagemagick: [[decoders]] for PSD, XCF, JP2 and others'
18 'wl-clipboard: the example copy command'
19 'matugen: wallpaper theming'
20 'python-pywal: wallpaper theming'
21)
22provides=("$_pkgname")
23conflicts=("$_pkgname")
24options=('!strip' '!debug')
25_dir="$_pkgname-v$pkgver-x86_64-linux"
26source=("$url/releases/download/v$pkgver/$_dir.tar.gz")
27sha256sums=('d9688a8244eacc2aa4daf6b18cea3244fd3aedcf29d142f2efc3c45fa13912dd')
28
29package() {
30 cd "$_dir"
31 install -Dm755 remage -t "$pkgdir/usr/bin/"
32 install -Dm644 remage.1 -t "$pkgdir/usr/share/man/man1/"
33 install -Dm644 completions/_remage -t "$pkgdir/usr/share/zsh/site-functions/"
34 install -Dm644 completions/remage.bash "$pkgdir/usr/share/bash-completion/completions/remage"
35 install -Dm644 completions/remage.fish -t "$pkgdir/usr/share/fish/vendor_completions.d/"
36 install -Dm644 contrib/remage.desktop -t "$pkgdir/usr/share/applications/"
37 install -Dm644 README.md contrib/config.example.toml -t "$pkgdir/usr/share/doc/$_pkgname/"
38 cp -r contrib/matugen contrib/pywal "$pkgdir/usr/share/doc/$_pkgname/"
39 install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
40 install -Dm644 OFL-fonts.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
41}