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

pkgname=libtwili
pkgver=1.1.0.r0.g8cfcc8c
pkgrel=1
pkgdesc='Small twili IO library'
arch=('any')
url='https://github.com/misson20000/twili-libnx'
license=(ISC)
options=(!strip staticlibs)
depends=('libnx' 'devkit-env')
makedepends=("devkitpro-pkgbuild-helpers" "devkitA64" "switch-tools" "make" "git")
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
}