diff --git a/archlinuxcn/deepin-unioncode-git/PKGBUILD b/archlinuxcn/deepin-unioncode-git/PKGBUILD new file mode 100644 index 000000000000..159ac11f2012 --- /dev/null +++ b/archlinuxcn/deepin-unioncode-git/PKGBUILD @@ -0,0 +1,83 @@ +# Maintainer: taotieren + +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 +} + +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}/" +} diff --git a/archlinuxcn/deepin-unioncode-git/lilac.yaml b/archlinuxcn/deepin-unioncode-git/lilac.yaml new file mode 100644 index 000000000000..aad064fd0d17 --- /dev/null +++ b/archlinuxcn/deepin-unioncode-git/lilac.yaml @@ -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