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 deepin-unioncode-git #3451

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
83 changes: 83 additions & 0 deletions archlinuxcn/deepin-unioncode-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Maintainer: taotieren <[email protected]>

pkgbase=deepin-unioncode-git
pkgname=deepin-unioncode-git
pkgver=1.1.19.r19.gfaa30c15
pkgrel=1
pkgdesc="IDE authored by deepin"
arch=(x86_64
aarch64
loongarch64
mips64
sw_64
riscv64)
url="https://github.com/linuxdeepin/deepin-unioncode"
license=('GPL-3.0')
groups=()
provides=(${pkgbase%-git})
conflicts=(${pkgbase%-git})
replaces=()
depends=(
glib2
glibc
)
makedepends=(
argtable
cmake
git
ninja
catch2
capstone
clang
dbus
doxygen
hiredis
llvm
json-c
jsoncpp
ncurses
libelf
libelfin
libmicrohttpd
libunwind
libutf8proc
libxi
lxqt-build-tools
qt5-tools
qt5-script
openssl
systemd
pkgconf
python
zstd
)
checkdepends=()
optdepends=()
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
options=('!strip')

pkgver() {
cd "${srcdir}/${pkgname}/"
git describe --long --tags | sed 's/^[vV]//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
cd "${srcdir}/${pkgname}"

# See:https://wiki.archlinux.org/title/CMake_package_guidelines
cmake -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER=clang \
-B build \
-G Ninja

ninja -C build
}
Comment on lines +65 to +77
Copy link
Contributor

Choose a reason for hiding this comment

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

-- CMAKE_INSTALL_RPATH /usr/lib//deepin-unioncode
CMake Error at CMakeLists.txt:94 (find_package):
  By not providing "FindDtk.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Dtk", but
  CMake did not find one.

  Could not find a package configuration file provided by "Dtk" with any of
  the following names:

    DtkConfig.cmake
    dtk-config.cmake

  Add the installation prefix of "Dtk" to CMAKE_PREFIX_PATH or set "Dtk_DIR"
  to a directory containing one of the above files.  If "Dtk" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().


package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname}/build install
install -Dm0644 "${srcdir}/${pkgname}"/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -m0644 "${srcdir}/${pkgname}"/LICENSES/* -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
14 changes: 14 additions & 0 deletions archlinuxcn/deepin-unioncode-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()

update_on:
- source: github
github: linuxdeepin/deepin-unioncode