summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2636504d08a0c4865baf6e6da81ff4dfac4a94f (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
45
46
# Maintainer: Swarnaditya Singh <demonkingswarn@protonmail.com>
pkgname=nsxiv-demon
_pkgname=nsxiv
pkgver=5.0.r1049.c216a40
pkgrel=1
epoch=
pkgdesc="A build of nsxiv which looks better."
arch=(x86_64)
url="https://github.com/demonkingswarn/nsxiv.git"
license=('GPL-2.0')
groups=()
depends=(ttf-jetbrains-mono ttf-jetbrains-mono-nerd)
makedepends=(git)
checkdepends=()
optdepends=()
provides=(nsxiv)
conflicts=(nsxiv)
replaces=()
backup=()
options=()
install=${pkgname}.install
changelog=
source=("git+$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
	cd "${_pkgname}"
    printf "5.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd ${_pkgname}
    make
}

package() {
    cd ${_pkgname}
    mkdir -p ${pkgdir}/opt/${pkgname}
    cp -rf * ${pkgdir}/opt/${pkgname}
    make PREFIX=/usr DESTDIR="${pkgdir}" install
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}