blob: 34503655c01c9f038b6feae3b73ee216e79a128d (
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
|
# Maintainer: Vaporeon <vaporeon@vaporeon.io>
pkgname=punes-git
pkgver=0.109.r1893.2af242f7
pkgrel=1
pkgdesc="Nintendo Entertaiment System emulator"
arch=('x86_64')
url="https://github.com/punesemu/puNES"
license=('GPL2')
depends=('alsa-lib' 'desktop-file-utils' 'ffmpeg' 'hicolor-icon-theme' 'nvidia-cg-toolkit' 'libxrandr' 'qt5-base' 'qt5-svg')
makedepends=('cmake' 'git' 'glu' 'ninja' 'qt5-tools')
conflicts=('punes')
provides=('punes')
source=("punes::git+https://github.com/punesemu/puNES.git")
md5sums=('SKIP')
#breaks internal lib7zip
options=('!buildflags')
pkgver() {
cd "${pkgname%-git}"
printf "%s.r%s.%s" "$(git describe --abbrev=0 --tags | sed 's/v//')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cmake -S "${pkgname%-git}" \
-G Ninja \
-B build \
-DENABLE_GIT_INFO=ON \
-DENABLE_OPENGL_CG=ON \
-DENABLE_QT6_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
}
package() {
DESTDIR="${pkgdir}" cmake --install build --config Release
}
|