Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stb single header libraries #180

Merged
merged 4 commits into from
Jul 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions stb/PSPBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
pkgname=stb
pkgver=20240714git
pkgrel=1
pkgdesc="a collcation of single-file public domain libraries for C/C++"
sharkwouter marked this conversation as resolved.
Show resolved Hide resolved
arch=('mips')
url="https://github.com/nothings/stb"
license=('Public Domain' 'MIT')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use Public Domain OR MIT instead of splitting them into two.

ref: https://spdx.github.io/spdx-spec/v3.0/annexes/SPDX-license-expressions/ from https://wiki.archlinux.org/title/PKGBUILD#license

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I wasn't aware. Thanks! I'll change it.

groups=('pspdev-default')
depends=()
makedepends=()
optdepends=()
source=("git+https://github.com/nothings/stb.git#commit=013ac3beddff3dbffafd5177e7972067cd2b5083")
sha256sums=('SKIP')

package() {
cd "stb"
mkdir -m 755 -p "$pkgdir/psp/include/"
install -m 644 *.h "$pkgdir/psp/include/"

mkdir -m 755 -p "$pkgdir/psp/share/licenses/$pkgname"
install -m 644 LICENSE "$pkgdir/psp/share/licenses/$pkgname"
}