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

[WIP] new package: librecad #21921

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
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
21 changes: 21 additions & 0 deletions x11-packages/librecad/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
TERMUX_PKG_HOMEPAGE='https://www.librecad.org/'
TERMUX_PKG_DESCRIPTION='A 2D CAD drawing tool based on the community edition of QCad'
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.2.2a1
TERMUX_PKG_SRCURL="git+https://github.com/LibreCAD/LibreCAD"
TERMUX_PKG_GIT_BRANCH=master
TERMUX_PKG_DEPENDS="libmuparser, libxcb, qt6-qt5compat, qt6-qtbase, qt6-qtsvg"
TERMUX_PKG_BUILD_DEPENDS="boost, imagemagick, librsvg, qt6-qttools"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DCMAKE_SYSTEM_NAME=Linux
"

termux_step_make_install() {
install -Dm555 -t $TERMUX_PREFIX/bin librecad
install -Dm444 -t $TERMUX_PREFIX/share/applications $TERMUX_PKG_SRCDIR/desktop/librecad.desktop
install -Dm644 -t $TERMUX_PREFIX/share/pixmaps $TERMUX_PKG_SRCDIR/librecad/res/main/librecad.png
install -Dm444 $TERMUX_PKG_SRCDIR/desktop/librecad.sharedmimeinfo $TERMUX_PREFIX/share/mime/packages/librecad.xml
install -Dm444 "$TERMUX_PKG_SRCDIR/desktop/graphics_icons_and_splash/Icon LibreCAD/Icon_Librecad.svg" $TERMUX_PREFIX/share/icons/hicolor/scalable/apps/librecad.svg
}