1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
3 # Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
8 pkgdesc="starter of deepin desktop environment"
10 url="https://github.com/linuxdeepin/startdde"
12 depends=('deepin-daemon' 'deepin-dock' 'deepin-polkit-agent' 'deepin-file-manager'
13 'deepin-session-shell' 'deepin-session-ui' 'libgnome-keyring')
14 makedepends=('cmake' 'coffeescript' 'golang-github-linuxdeepin-go-dbus-factory' 'golang-deepin-gir'
15 'golang-deepin-lib' 'golang-deepin-dde-api' 'go' 'git' 'jq'
16 'golang-golang-x-net' 'golang-github-linuxdeepin-go-x11-client'
17 'golang-github-fsnotify-fsnotify' 'golang-github-stretchr-testify'
18 'golang-gopkg-yaml.v3')
19 optdepends=('deepin-wm: Legacy 3D window manager'
20 'deepin-metacity: Legacy 2D window manager'
21 'deepin-kwin: Preferred window manager')
22 replaces=('deepin-wm-switcher')
25 source=("https://github.com/linuxdeepin/startdde/archive/$pkgver/$pkgname-$pkgver.tar.gz"
27 sha512sums=('eaf3c3fbeeac44ac63b761ec55f8a2eec70c80f883eea5207d35e542ff9e86b5d7da944b5b76ff0c6c3fcb25f780af7c097d98493e04e9740c63e2579443d999'
28 'e15ff5b1c649cfc736ba47f7d69ca3d7abeb5593f25ccd71c0965439862204d25833fa7d896cd3073d6c449040b42153d6c6ccbb9e12d5c698603458130d497d')
30 export GO111MODULE=off
33 export GOPATH="$srcdir/build:/usr/share/gocode"
34 go get github.com/cryptix/wav golang.org/x/xerrors github.com/godbus/dbus github.com/youpy/go-wav
37 patch -p2 -i ../schema.patch
39 sed -i 's/sbin/bin/' Makefile
41 sed -i 's|/etc/os-version|/etc/uos-version|' vm.go utils.go misc/Xsession.d/00deepin-dde-env
45 export CGO_CPPFLAGS="${CPPFLAGS}"
46 export CGO_CFLAGS="${CFLAGS}"
47 export CGO_CXXFLAGS="${CXXFLAGS}"
48 export CGO_LDFLAGS="${LDFLAGS}"
49 export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
57 make DESTDIR="$pkgdir" install
59 # Fix env file permission
60 chmod +x "$pkgdir"/etc/X11/Xsession.d/*
62 # Don't rely on deepin-session's location
63 install -dm755 "$pkgdir"/etc/X11/xinit/xinitrc.d
64 mv "$pkgdir"/etc/X11/Xsession.d/* "$pkgdir"/etc/X11/xinit/xinitrc.d/
65 rmdir "$pkgdir"/etc/X11/Xsession.d