Skip to content

Commit

Permalink
upload quirc PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
Genwald committed May 1, 2021
1 parent c271181 commit 1873b91
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions libs/quirc/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

pkgname=switch-libquirc
pkgver=1.1
pkgrel=1
pkgdesc='QR decoder library (Nintendo Switch port)'
arch=('any')
url='https://github.com/dlbeer/quirc'
license=('ISC')
options=(!strip libtool staticlibs)
source=("https://github.com/dlbeer/quirc/archive/refs/tags/v$pkgver.zip")
sha256sums=('e2b7a09f81d9436fc0c66c9412548113f8194fa2ddd08ddd87fc0844d6daaa63')
makedepends=('devkitpro-pkgbuild-helpers')
groups=('switch-portlibs')

build() {
cd quirc-$pkgver

source /opt/devkitpro/switchvars.sh

make CC=${TOOL_PREFIX}gcc PREFIX=${PORTLIBS_PREFIX} libquirc.so libquirc.a
}

package() {
cd quirc-$pkgver

source /opt/devkitpro/switchvars.sh

install -Dm 0644 -t $pkgdir${PORTLIBS_PREFIX}/include lib/quirc.h
install -Dm 0644 -t $pkgdir${PORTLIBS_PREFIX}/lib libquirc.a

install -d "$pkgdir"/opt/devkitpro/portlibs/switch/licenses/$pkgname
install LICENSE "$pkgdir"/opt/devkitpro/portlibs/switch/licenses/$pkgname/LICENSE
}

0 comments on commit 1873b91

Please sign in to comment.