| 1 | # Maintainer: krolyxon <me@krolyxon.com> |
| 2 | pkgname=remage-bin |
| 3 | _pkgname=remage |
| 4 | pkgver=0.1.0 |
| 5 | pkgrel=1 |
| 6 | pkgdesc='Keyboard-centric, GPU-rendered image viewer with vim keys and wallpaper theming' |
| 7 | arch=('x86_64') |
| 8 | url='https://github.com/krolyxon/remage' |
| 9 | license=('AGPL-3.0-only' 'OFL-1.1') |
| 10 | depends=('gcc-libs' 'glibc' 'dav1d' 'libheif' 'libxkbcommon' 'wayland' 'vulkan-icd-loader') |
| 11 | optdepends=( |
| 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 | ) |
| 22 | provides=("$_pkgname") |
| 23 | conflicts=("$_pkgname") |
| 24 | options=('!strip' '!debug') |
| 25 | _dir="$_pkgname-v$pkgver-x86_64-linux" |
| 26 | source=("$url/releases/download/v$pkgver/$_dir.tar.gz") |
| 27 | sha256sums=('d9688a8244eacc2aa4daf6b18cea3244fd3aedcf29d142f2efc3c45fa13912dd') |
| 28 | |
| 29 | package() { |
| 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 | } |