From 17c76e6f1941652d7bbb344db157f80b866b2104 Mon Sep 17 00:00:00 2001 From: Tsic Liu Date: Fri, 25 Oct 2024 15:53:40 +0800 Subject: [PATCH] chore(CI): add archlinux build log: as title --- archlinux/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 archlinux/PKGBUILD diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD new file mode 100644 index 0000000..7a86b3a --- /dev/null +++ b/archlinux/PKGBUILD @@ -0,0 +1,38 @@ +pkgname=deepin-application-manager-git +_pkgname=deepin-application-manager +sourcename=dde-application-manager +pkgver=1.2.15.r2.g0e6c213 +pkgrel=1 +pkgdesc='App manager of Deepin Desktop Environment' +arch=('x86_64') +url="https://github.com/linuxdeepin/dde-application-manager" +license=('GPL3') +# deepin-wloutput-daemon: org.deepin.dde.KWayland1 +# startdde: org.deepin.dde.XSettings1 +depends=('qt6-base' 'glibc' 'gcc-libs' 'systemd-libs') +makedepends=('cmake' 'ninja' 'gtest') +conflicts=($_pkgname) +provides=($_pkgname) +groups=('deepin-git') +sourcename=dde-application-manager +sourcetars=("$sourcename"_"$pkgver".tar.xz) +sha512sums=('SKIP') + +pkgver() { + cd $sourcename + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd $sourcename + cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LIBEXECDIR=lib + ninja +} + +package() { + cd $sourcename + DESTDIR="$pkgdir" ninja install + rm -r "$pkgdir"/etc/dpkg + rmdir "$pkgdir"/etc +} +