summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1dac6df68c97d43131535529348fc6457d73b831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Maintainter: GiacoLenzo2109 <GiacoLenzo2109@gmail.com>
# Contributer: Librewish <librewish@gmail.com>
# Contributer : Ramon Buldo <ramon@croco.org>

pkgbase=croco-settings-manager-git
pkgname=('croco-settings-manager-git' 'croco-settings-manager-kcm-git' 
         'croco-settings-manager-notifier-git' 'croco-settings-manager-knotifier-git')
pkgver=r16.011593f
#_commit=e085b661c3c97e8aa39a5b49896a88a95d84caf9
pkgrel=1
pkgdesc="Croco Linux System Settings Tool (manjaro settings manager ported to work with arch standards and limited to only dkms drivers)"
arch=('i686' 'x86_64')
url="https://gitlab.com/croco-linux/applications/croco-settings-manager"
license=("GPL")
depends=('icu' 'qt5-base>=5.12.3' 'hwinfo' 'kitemmodels' 'kauth' 
         'kcoreaddons' 'ckbcomp' 'xdg-utils' 'mhwd-croco-git')
optdepends=('croco-settings-manager-notifier-git: qt-based'
            'croco-settings-manager-knotifier-git: knotifications-based')
makedepends=('git' 'extra-cmake-modules' 'kdoctools' 'qt5-tools' 'knotifications' 
             'kconfigwidgets' 'kcmutils')
conflicts=('kcm-msm')
# source=("msm-$pkgver-$pkgrel.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz")
source=("git+https://gitlab.com/croco-os/applications/croco-settings-manager.git")
sha256sums=('SKIP')
pkgver() {
	cd "$srcdir/croco-settings-manager"

# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}
prepare() {
#  mv ${pkgbase}-${_commit} ${pkgbase}-${pkgver}
  cd "$srcdir/croco-settings-manager/"
  # patches here
}

build() {
  cd "$srcdir/croco-settings-manager/"
  mkdir -p build
  cd build
  cmake ../ \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_INSTALL_DIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
    -DSYSCONF_INSTALL_DIR=/etc
  CXXFLAGS+="-std=gnu++98" make
}

package_croco-settings-manager-git() {
provides=('croco-settings-manager')
  conflicts=('croco-settings-manager')
  replaces=('croco-settings-manager')
  cd "$srcdir/croco-settings-manager//build"
  make DESTDIR=${pkgdir} install 
  rm -rf $pkgdir/usr/bin/msm_notifier
  rm -rf $pkgdir/usr/bin/msm_kde_notifier
  rm -rf $pkgdir/usr/lib/qt
  rm -rf $pkgdir/usr/share/kservices5
  rm -rf $pkgdir/usr/share/applications/msm_notifier_settings.desktop
  rm -rf $pkgdir/usr/share/applications/msm_kde_notifier_settings.desktop
  rm -rf $pkgdir/etc/xdg
}

package_croco-settings-manager-kcm-git() {
  pkgdesc="Croco Linux System Settings Tool (KCM for Plasma 5) (manjaro settings manager ported to work with arch standards and limited to only dkms drivers)"
  depends=('croco-settings-manager' 'kcmutils' 'kconfigwidgets')
  provides=('croco-settings-manager-kcm')
  conflicts=('croco-settings-manager-kcm')
  replaces=('croco-settings-manager-kcm')
  cd "$srcdir/croco-settings-manager//build"
  make DESTDIR=${pkgdir} install
  rm -rf $pkgdir/etc  
  rm -rf $pkgdir/usr/bin
  rm -rf $pkgdir/usr/lib/kauth
  rm -rf $pkgdir/usr/share/{applications,dbus-1,icons,polkit-1}
}

package_croco-settings-manager-notifier-git() {
  pkgdesc="Croco Linux System Settings Tool (Notifier) (manjaro settings manager ported to work with arch standards and limited to only dkms drivers)"
  depends=('croco-settings-manager')
  provides=('croco-settings-manager-notifier')
  conflicts=('croco-settings-manager-notifier')
  replaces=('croco-settings-manager-notifier')
  cd "$srcdir/croco-settings-manager//build"
  make DESTDIR=${pkgdir} install
  rm -rf $pkgdir/etc/dbus-1
  rm -rf $pkgdir/etc/xdg/autostart/msm_kde_notifier.desktop
  rm -rf $pkgdir/usr/lib/
  rm -rf $pkgdir/usr/share/{kservices5,dbus-1,icons,polkit-1}
  rm -rf $pkgdir/usr/share/applications/croco*
  rm -rf $pkgdir/usr/share/applications/msm_kde_notifier_settings.desktop
  rm -rf $pkgdir/usr/bin/croco*
  rm -rf $pkgdir/usr/bin/msm_kde_notifier
}

package_croco-settings-manager-knotifier-git() {
  pkgdesc="Croco Linux System Settings Tool (Notifier for Plasma 5) (manjaro settings manager ported to work with arch standards and limited to only dkms drivers)"
  depends=('croco-settings-manager' 'knotifications')
  provides=('croco-settings-manager-knotifier')
  conflicts=('croco-settings-manager-knotifier')
  replaces=('croco-settings-manager-knotifier')
  cd "$srcdir/croco-settings-manager//build"
  make DESTDIR=${pkgdir} install
  rm -rf $pkgdir/etc/dbus-1
  rm -rf $pkgdir/etc/xdg/autostart/msm_notifier.desktop
  rm -rf $pkgdir/usr/lib/
  rm -rf $pkgdir/usr/share/{kservices5,dbus-1,icons,polkit-1}
  rm -rf $pkgdir/usr/share/applications/croco*
  rm -rf $pkgdir/usr/share/applications/msm_notifier_settings.desktop
  rm -rf $pkgdir/usr/bin/croco*
  rm -rf $pkgdir/usr/bin/msm_notifier
}