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: libcs50-git #6355

Merged
merged 4 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ lemonbar-xft-git
lens
lf-bin
libcamera-git
libcs50-git
libcutefish-git
libdisplay-info-git
libdrm
Expand Down
9 changes: 9 additions & 0 deletions packages/libcs50-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pkgbase = libcs50-git
gives = libcs50
pkgver = 11.0.3
pkgdesc = Library provided by Harvard University for learning the basic C language
makedepends = make
maintainer = Vaibhav Sharma <[email protected]>
source = https://github.com/cs50/libcs50.git

pkgname = libcs50-git
25 changes: 25 additions & 0 deletions packages/libcs50-git/libcs50-git.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
pkgname="libcs50-git"
gives="libcs50"
pkgver="11.0.3"
source=("https://github.com/cs50/libcs50.git")
makedepends=("make")
maintainer=("Vaibhav Sharma <[email protected]>")
pkgdesc="Library provided by Harvard University for learning the basic C language"

build() {
cd "${_archive}"
vvaibhavv11 marked this conversation as resolved.
Show resolved Hide resolved
make
vvaibhavv11 marked this conversation as resolved.
Show resolved Hide resolved
}

package() {
cd "${_archive}"
make DESTDIR="${pkgdir}/usr/local" install || true
vvaibhavv11 marked this conversation as resolved.
Show resolved Hide resolved

# Manually skip or suppress the ldconfig error
# Skipping ldconfig to avoid read-only filesystem issues
echo "skipping the ldconfig because it gives error doing this after the install"
vvaibhavv11 marked this conversation as resolved.
Show resolved Hide resolved
}

post_install() {
ldconfig /usr/local/lib
}
10 changes: 10 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -5007,6 +5007,16 @@ pkgbase = libcamera-git

pkgname = libcamera-git
---
pkgbase = libcs50-git
gives = libcs50
pkgver = 11.0.3
pkgdesc = Library provided by Harvard University for learning the basic C language
makedepends = make
maintainer = Vaibhav Sharma <[email protected]>
source = https://github.com/cs50/libcs50.git

pkgname = libcs50-git
---
pkgbase = libcutefish-git
gives = libcutefish
pkgver = 0.7
Expand Down
Loading