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 Nov 3, 2023
1 parent 0b6b712 commit 9385d91
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 @@ -4269,3 +4269,6 @@ libgrass_gproj.8.3.so grass-8.3.0_1
libgrass_imagery.8.3.so grass-8.3.0_1
libgrass_raster.8.3.so grass-8.3.0_1
libgrass_vector.8.3.so grass-8.3.0_1
libobjfw.so.1 ObjFW-1.0.4_1
libobjfwrt.so.1 ObjFW-1.0.4_1
libobjfwtls.so.1 ObjFW-1.0.4_1
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 9385d91

Please sign in to comment.