summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5334ba62a0d07d23a1915dab006111993324804 (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
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
# Contributor: drieck (https://aur.archlinux.org/account/dreieck)
# Contributor: frousties

pkgname=tacentview
pkgver=1.0.43
_commit=bbb47e69561a11a3efcfd0582653495dc59d52a6
pkgrel=4
pkgdesc="Image viewer/editor for tga, png, apng, exr, dds, pvr, ktx, ktx2, astc, pkm, qoi, gif, hdr, jpg, tif, ico, webp, and bmp files"
url="https://github.com/bluescan/tacentview"
license=('ISC')
arch=('x86_64')
depends=('hicolor-icon-theme' 'libx11' 'libxcb')
makedepends=('cmake' 'git' 'ninja')
source=("git+$url.git#commit=$_commit")
sha256sums=('SKIP')

prepare() {
  cmake -S $pkgname -B build -DCMAKE_BUILD_TYPE=Release -DFETCHCONTENT_QUIET=OFF -GNinja
}

build() {
  ninja -C build install
}

package() {
  install -Dm644 $pkgname/docs/* -t "$pkgdir/usr/share/doc/$pkgname"
  install -Dm644 $pkgname/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
  install -Dm644 build/ViewerInstall/Data/* -t "$pkgdir/usr/share/$pkgname/Data"
  install -Dm755 build/ViewerInstall/$pkgname -t "$pkgdir/usr/bin"
  rm -dr $pkgname/Linux/deb_template/usr/share/$pkgname "$pkgdir/usr/share/$pkgname/Data/TacentView.ico"
  mv $pkgname/Linux/deb_template/usr/share/* "$pkgdir/usr/share"
}