[arch-commits] Commit in deepin-terminal/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Nov 18 01:24:40 UTC 2016


    Date: Friday, November 18, 2016 @ 01:24:39
  Author: felixonmars
Revision: 196277

upgpkg: deepin-terminal 2.1.0-1

Modified:
  deepin-terminal/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-17 23:53:47 UTC (rev 196276)
+++ PKGBUILD	2016-11-18 01:24:39 UTC (rev 196277)
@@ -4,29 +4,34 @@
 # Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
  
 pkgname=deepin-terminal
-pkgver=2.0.16
-pkgrel=2
+pkgver=2.1.0
+pkgrel=1
 pkgdesc='Default terminal emulation application for Deepin'
 arch=('i686' 'x86_64')
 url="https://github.com/manateelazycat/deepin-terminal"
 license=('GPL3')
 depends=('vte3' 'libsecret' 'libgee' 'libwnck3' 'expect' 'deepin-shortcut-viewer' 'deepin-menu')
-makedepends=('git' 'vala')
+makedepends=('git' 'vala' 'cmake')
 groups=('deepin-extra')
 options=(!emptydirs)
-source=("git+https://github.com/manateelazycat/deepin-terminal.git")
+source=("git+https://github.com/manateelazycat/deepin-terminal.git#tag=$pkgver")
 sha256sums=('SKIP')
 
 prepare() {
+  mkdir -p build
+
   sed -i 's|return __FILE__;|return "/usr/share/deepin-terminal/project_path.c";|' deepin-terminal/project_path.c
 }
 
 build() {
-  cd deepin-terminal
-  make PREFIX=/usr
+  cd build
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    ../deepin-terminal
+  make
 }
  
 package() {
-  cd deepin-terminal
-  make DESTDIR="$pkgdir" PREFIX=/usr install
+  make -C build DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list