Date: Friday, October 21, 2022 @ 19:08:55
Author: felixonmars
Revision: 1333259
archrelease: copy trunk to community-staging-x86_64
Added:
deepin-editor/repos/community-staging-x86_64/
deepin-editor/repos/community-staging-x86_64/PKGBUILD
(from rev 1333258, deepin-editor/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: deepin-editor/repos/community-staging-x86_64/PKGBUILD (from rev
1333258, deepin-editor/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-10-21 19:08:55 UTC (rev 1333259)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=deepin-editor
+pkgver=5.10.36
+pkgrel=2
+pkgdesc='Simple editor for Deepin'
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-editor"
+license=('GPL3')
+depends=('deepin-qt5integration' 'kcodecs' 'polkit-qt5' 'syntax-highlighting'
'libchardet' 'uchardet')
+makedepends=('cmake' 'gmock' 'gtest' 'ninja' 'qt5-tools')
+groups=('deepin-extra')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-editor/archive/$pkgver.tar.gz")
+sha512sums=('432f63755bde2b4deb476186778edd6b1407bbb20ae2940d5e14cb7f74ddc07f0edd9762bc944884dca127cbccd9ef933010265d90d0d5a8314df38e10b1e4b3')
+
+build() {
+ cd deepin-editor-$pkgver
+ cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
+ ninja
+}
+
+check() {
+ cd deepin-editor-$pkgver
+ ninja test || echo "Tests failed"
+}
+
+package() {
+ cd deepin-editor-$pkgver
+ DESTDIR="$pkgdir" ninja install
+}