Skip to content

Commit 58ce063

Browse files
CpasjusteWinterMute
authored andcommitted
switch-tinyxml2: add package (#123)
1 parent 04a1c7a commit 58ce063

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

switch/TinyXML2/PKGBUILD

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
# Maintainer: WinterMute <davem@devkitpro.org>
3+
pkgname=switch-tinyxml2
4+
pkgver=6.0.0
5+
pkgrel=2
6+
pkgdesc='A simple, small, efficient, C++ XML parser that can be easily integrated into other programs (for Nintendo Switch homebrew development)'
7+
arch=('any')
8+
url='http://leethomason.github.io/tinyxml2/'
9+
license=('apache')
10+
options=(!strip libtool staticlibs)
11+
source=( "https://github.com/leethomason/tinyxml2/archive/${pkgver}.tar.gz" )
12+
makedepends=('switch-pkg-config' 'devkitpro-pkgbuild-helpers')
13+
sha256sums=('9444ba6322267110b4aca61cbe37d5dcab040344b5c97d0b36c119aa61319b0f')
14+
groups=('switch-portlibs')
15+
16+
build() {
17+
cd tinyxml2-$pkgver
18+
19+
source /opt/devkitpro/switchvars.sh
20+
21+
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/switch.cmake \
22+
-DCMAKE_INSTALL_PREFIX=$PORTLIBS_PREFIX \
23+
-DCMAKE_C_FLAGS="$CFLAGS $CPPFLAGS" \
24+
-DCMAKE_CXX_FLAGS="$CFLAGS" \
25+
-DBUILD_TESTS:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON \
26+
-G"Unix Makefiles" \
27+
.
28+
29+
make
30+
31+
}
32+
33+
package() {
34+
35+
cd tinyxml2-$pkgver
36+
37+
source /opt/devkitpro/switchvars.sh
38+
39+
make install DESTDIR="$pkgdir"
40+
41+
}

0 commit comments

Comments
 (0)