summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a842ba50b80c4498aa5d1a79f51f85c90f49d817 (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
# Maintainer: misson20000 <xenotoad@xenotoad.net>

pkgname=libtwili
pkgver=1.0.0.r0.g3a061af
pkgrel=1
pkgdesc='Small twili IO library'
arch=('any')
url='https://github.com/misson20000/twili-libnx'
license=(ISC)
options=(!strip staticlibs)
makedepends=('devkitpro-pkgbuild-helpers')
source=("git+https://github.com/misson20000/twili-libnx.git")
sha256sums=("SKIP")

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

build() {
  cd "$srcdir/twili-libnx"

  make
}

package() {
  cd "$srcdir/twili-libnx"

  source /opt/devkitpro/devkita64.sh
  source /opt/devkitpro/switchvars.sh

  make DESTDIR="$pkgdir"${PORTLIBS_PREFIX} install
}