summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 39f28a54d3cc9f64567b71c468e75c2061c4dd7c (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
# Maintainer: kinker31 <dp223171@gmail.com>
#Thanks for lettin' me borrow some of your code, Mike Cuche <mike@cuche.cc>
pkgname=nyan-doom-git
pkgver=r10575.2d3ef59b1
pkgrel=1
pkgdesc="A cuddly fork of DSDA, with an emphasis on innovative and QoL features. (Git Version)"
arch=('x86_64')
url="https://github.com/andrikpowell/nyan-doom"
license=('GPL2')
depends=('fluidsynth' 'glu' 'libmad' 'sdl2_image' 'sdl2_mixer' 'sdl2_net' 'dumb' 'portmidi' 'libzip')
makedepends=('cmake' 'imagemagick')
source=("git+https://github.com/andrikpowell/nyan-doom.git")
sha256sums=('SKIP')

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

build() {
	cd "${srcdir}/nyan-doom/prboom2"  
	cmake . -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
	make -j$(nproc)
}

package() {
  cd "${srcdir}/nyan-doom/prboom2"
  make DESTDIR="${pkgdir}" install
  install -Dm644 ICONS/nyan-doom.png "${pkgdir}"/usr/share/pixmaps/nyan-doom.png
  install -Dm644 ICONS/nyan-doom.desktop "${pkgdir}"/usr/share/applications/nyan-doom.desktop
}