summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4da9eae2a7429a99160a472ce25388f37741e044 (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
# Maintainer: lithm <lithm at posteo dot de>
pkgname=cute3dscapture-git
_binname=Cute3DSCapture
pkgver=1.3.r18.g33c9a78
pkgrel=1
pkgdesc="A 3DS capture software"
arch=('i686' 'x86_64')
url="https://github.com/Gotos/Cute3DSCapture"
license=('unknown')
depends=('sfml' 'libusb')
makedepends=('git')
provides=('cute3dscapture')
conflicts=('cute3dscapture')
backup=('etc/udev/rules.d/95-3dscapture.rules')
install="${pkgname}.install"
source=("${pkgname}::git+https://github.com/Gotos/Cute3DSCapture.git")
md5sums=('SKIP')


pkgver() {
    cd "${srcdir}/${pkgname}"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${srcdir}/${pkgname}"
    ./autogen.sh
    ./configure
    make
}

package() {
    cd "${srcdir}/${pkgname}"
    install -D -m755 "${_binname}" "${pkgdir}/usr/bin/${_binname}"
    install -D -m644 "95-3dscapture.rules" "${pkgdir}/etc/udev/rules.d/95-3dscapture.rules"
}