Skip to content

Commit

Permalink
New package: ObjFW-1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nsailor committed Oct 12, 2023
1 parent ebfd726 commit 93b1aa7
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ libfplll.so.8 fplll-5.4.4_1
libpanelw.so.6 ncurses-libs-5.8_1 ignore
libmenuw.so.6 ncurses-libs-5.8_1 ignore
libobjc.so.4 libobjc-4.7.3_12
libobjfw.so.1 ObjFW-1.0.3_1
libobjfwrt.so.1 ObjFW-1.0.3_1
libobjfwtls.so.1 ObjFW-1.0.3_1
libgomp.so.1 libgomp-4.4.0_1
libgps.so.29 gpsd-3.23_1
libmagic.so.1 libmagic-5.12_1
Expand Down
1 change: 1 addition & 0 deletions srcpkgs/ObjFW-devel
1 change: 1 addition & 0 deletions srcpkgs/ObjFW-doc
51 changes: 51 additions & 0 deletions srcpkgs/ObjFW/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Template file for 'ObjFW'
pkgname=ObjFW
version=1.0.4
revision=1
build_style=gnu-configure
hostmakedepends="clang doxygen"
makedepends="openssl-devel"
short_desc="Portable framework for the Objective-C language"
maintainer="Jason Barmparesos <github@jasonb.dev>"
license="GPL-2.0-only,GPL-3.0-only,QPL-1.0"
homepage="https://objfw.nil.im"
changelog="https://objfw.nil.im/file?name=ChangeLog&ci=trunk"
distfiles="https://objfw.nil.im/downloads/objfw-${version}.tar.gz"
checksum=c62c61fc3f1b2d5c1d78369c602a6e82b32ade5c8ec0e9c410646d1554bf1e26

do_configure() {
if [ -n "${XBPS_CROSS_TRIPLET}" ]; then
./configure ${configure_args} \
OBJC="clang --target=${XBPS_CROSS_TRIPLET}"
else
./configure ${configure_args} OBJC=clang
fi
}

do_build() {
make ${makejobs}
make docs
}

post_install() {
vmkdir usr/share/doc/objfw
vcopy "docs/*" usr/share/doc/objfw
}

ObjFW-devel_package() {
short_desc+=" - development files and utilities"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/bin/objfw-*"
}
}

ObjFW-doc_package() {
short_desc+=" - developer documentation"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/doc
}
}

0 comments on commit 93b1aa7

Please sign in to comment.