summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 27e0fc54d9926e1e644abb4e158bb8ddeeeacaaf (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
#Maintainer issue <issue at archlinux dot info>

pkgname=ntrviewer-git
_pkgname=NTRViewer
pkgdesc=" PC Viewer for NTR CFW's streaming feature"
url="https://github.com/44670/NTRViewer"
pkgrel=3
depends=('sdl' 'libjpeg-turbo' 'ffmpeg' 'sdl2')
makedepends=('git' 'make')
arch=('x86_64')
license=('GPL3')
md5sums=('SKIP')
pkgver=r9.e780deb
source=('git+https://github.com/44670/NTRViewer.git')

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

prepare() {
    cd "$_pkgname"
}

build(){
    cd $_pkgname

    make CONF=Debug
}

package(){
    install -Dm755 "$srcdir/$_pkgname/dist/Debug/GNU-Linux/ntrviewer" "$pkgdir/usr/bin/ntrviewer"
}