summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ae06e97a8a58291588b68490799784543fbd814 (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
# Maintainer: Chih-Hsuan Yan <yan12125@gmail.com>
# Contributor: Marcin Mikołajczak <me@m4sk.in>
# Contributor: Jerome Leclanche <jerome@leclan.ch>

_pkgname=lximage-qt
pkgname=$_pkgname-git
pkgver=0.14.1.55.g8cc1a6f
pkgrel=2
pkgdesc="The LXQt image viewer"
arch=("i686" "x86_64")
url="https://lxqt.org"
license=("GPL2")
depends=("libfm-qt-git" "qt5-x11extras" "qt5-svg" "hicolor-icon-theme" "libexif")
optdepends=(
  "qt5-imageformats: support for additional image formats (WEBP, TIFF, etc.)"
)
makedepends=("git" "cmake" "qt5-tools" "lxqt-build-tools-git")
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=("git+https://github.com/lxqt/$_pkgname.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --always | sed "s/-/./g"
}

prepare() {
  cd $_pkgname
  mkdir -p build
}

build() {
  cd $_pkgname/build
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    ..
  make
}

package() {
  cd $_pkgname/build
  make DESTDIR="$pkgdir" install
}