summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42751da755b91348c394301419e413ca7011c8f0 (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
pkgname=ximaging
pkgver=1.9
pkgrel=1
pkgdesc="Lightweight, Motif-based image viewer for X11"
url="https://fastestcode.org/ximaging.html"
arch=(x86_64)
depends=(
	gcc-libs	# libgomp.so
	libjpeg-turbo	# libjpeg
	libpng		# libpng
	libtiff		# libtiff
	libx11		# libX11
	openmotif	# libXm
)
makedepends=(
	make
)
#source=("git+https://github.com/alx210/$pkgname")
source=("https://fastestcode.org/dl/$pkgname-src-$pkgver.tar.xz")
sha256sums=('1bf62c19156e537b037a9e7f7ff25d2f6d824c5d9a57f9ad06ff55640622e43a')

build() {
	cd $pkgname-src-$pkgver
	make all
}

package() {
	cd $pkgname-src-$pkgver
	# sigh
	mkdir -p "$pkgdir"/usr/bin
	mkdir -p "$pkgdir"/usr/share/man/man1
	mkdir -p "$pkgdir"/usr/share/X11/app-defaults
	make \
		PREFIX="$pkgdir"/usr \
		APPLRESDIR="$pkgdir"/usr/share/X11/app-defaults \
		install
}