summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8cf7f0d2bfa5dd687b3eec40a3abd4da99a12e1b (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
# Maintainer: SoftExpert <softexpert at gmail dot com>
pkgname=lightning-image-viewer-bin
pkgver=0.2.0
pkgrel=2
pkgdesc='Fast and lightweight desktop image viewer'
arch=(x86_64)
url='https://github.com/shatsky/lightning-image-viewer/'
license=(GPL-3.0-only)
depends=(
	# As reported by namcap
	glibc
	libexif
	hicolor-icon-theme
	sdl3
	sdl3_image
)
provides=(lightning-image-viewer)
conflicts=(
	lightning-image-viewer
)
options=(
#	!strip     # Stripping symbols would break the binary
	!emptydirs # Remove empty directories from package because why not
)
source_x86_64=(
	"${pkgname}-${pkgver}.deb::https://github.com/shatsky/lightning-image-viewer/releases/download/v${pkgver}/lightning-image-viewer_${pkgver}_amd64.deb"
	"${pkgname}-${pkgver}.LICENSE::https://raw.githubusercontent.com/shatsky/lightning-image-viewer/refs/heads/main/LICENSE"
)
b2sums_x86_64=('272f68d78bd35a071625e56f3692297761d77609e7ce36f82c5350b7592acb3988de6b178f815030071cfb789c16bddb8cc71db234eae3fb77afec3e3b2daa2a'
               '74915e048cf8b5207abf603136e7d5fcf5b8ad512cce78a2ebe3c88fc3150155893bf9824e6ed6a86414bbe4511a6bd4a42e8ec643c63353dc8eea4a44a021cd')

prepare() {
	bsdtar -xf "${srcdir}/data.tar.zst" -C "${srcdir}/"
}

package() {
	cp -a \
		"${srcdir}/usr/" \
		"${pkgdir}/usr/"
	install -Dm644 \
		"${srcdir}/${pkgname}-${pkgver}.LICENSE" \
		"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}