Author Topic: [How-To] package your themes for Manjaro  (Read 5365 times)

0 Members and 1 Guest are viewing this topic.

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru
[How-To] package your themes for Manjaro
« on: 28. May 2013, 18:10:35 »
Some of you guys are really great Artists. So here is how to package them for Manjaro.

Some PKGBUILD examples:

Code: [Select]

# Maintainer: le3adam <onebigear86@hotmail.com>

pkgname=le3kdm+ksplash-themes
pkgver=2013.05
pkgrel=3
pkgdesc="Bundle of Simple KDM & KSplash themes for manjaro (Part of LE3_KDE Suite)"
url="http://manjaro.org"
license=('GPL')
depends=('kdebase-workspace')
arch=('any')
source=('LE3Web-KDM.tar.gz'
'LE3Flat-KDM.tar.gz'
'LE3Web-KSplash.tar.gz'
'LE3Flat-KSplash.tar.gz')

sha256sums=('b129b8e9a38864bb8efc1f7b38a5e98ec710e6257d4b767895a5b2d7e47c38fd'
            'f9a51fe02b0a5372f73a05803ef9f7407876d7fa7db79de840da6ed2f64ca193'
            '32d7eca8f81d5738ec04d17a473de8a95109a079cc9c059b834832f83e632d6c'
            '6291c2bcb4bfc604fc0c5404f5a2bcc149e237a1de7cd18a86fcde09965dee43')

package() {
mkdir -p $pkgdir/usr/share/apps/kdm/themes/LE3Web-KDM
chmod 755 -R $pkgdir/usr/share/apps/kdm/themes
mkdir -p $pkgdir/usr/share/apps/kdm/themes/LE3Flat-KDM
chmod 755 -R $pkgdir/usr/share/apps/kdm/themes
mkdir -p $pkgdir/usr/share/apps/ksplash/Themes/LE3Web-KSplash
chmod 755 -R $pkgdir/usr/share/apps/ksplash/Themes
mkdir -p $pkgdir/usr/share/apps/ksplash/Themes/LE3Flat-KSplash
chmod 755 -R $pkgdir/usr/share/apps/ksplash/Themes

cd ${srcdir}/LE3Web-KDM
cp -rf * $pkgdir/usr/share/apps/kdm/themes/LE3Web-KDM

cd ${srcdir}/LE3Flat-KDM
cp -rf * $pkgdir/usr/share/apps/kdm/themes/LE3Flat-KDM

cd ${srcdir}/LE3Web-KSplash
cp -rf * $pkgdir/usr/share/apps/ksplash/Themes/LE3Web-KSplash

cd ${srcdir}/LE3Flat-KSplash
cp -rf * $pkgdir/usr/share/apps/ksplash/Themes/LE3Flat-KSplash

}

Code: [Select]

# Maintainer: le3adam <onebigear86@hotmail.com>

pkgname=le3_kdm
_themename=LE3_KDM
pkgver=2013.05
pkgrel=1
pkgdesc="Simple KDM theme for manjaro (Part of LE3_KDE Suite)"
url="http://manjaro.org"
license=('GPL')
depends=('kdebase-workspace')
arch=('any')

source=('LE3_KDM.tar.gz')

md5sums=('a9e29b4e11c4a85ac31a986a648a9afc')


package() {
  mkdir -p $pkgdir/usr/share/apps/kdm/themes/
  mv $srcdir/$_themename $pkgdir/usr/share/apps/kdm/themes/
}
Code: [Select]

# Maintainer: le3adam <onebigear86@hotmail.com>

pkgname=le3_ksplash
_themename=LE3_KSplash
pkgver=2013.05
pkgrel=1
pkgdesc="Simple KSplash theme for manjaro (Part of LE3_KDE Suite)"
url="http://manjaro.org"
license=('GPL')
depends=('kdebase-workspace')
arch=('any')

source=('LE3_KSplash.tar.gz')

md5sums=('5e2089183bcec47a37167f606edfdcfd')

package() {
  mkdir -p $pkgdir/usr/share/apps/ksplash/Themes
  mv $srcdir/$_themename $pkgdir/usr/share/apps/ksplash/Themes
}

Those are ok, but the names are not common. So we have to get to a standard. Otherwise it is harder to find them with our package managers.
I already uploaded some themes with those fancy names their packagers had chosen. So all of them need to be repacked/renamed next time.

I recommend to use standard names:

kde-theme-NAME: for complete KDE themes with KDM, KSPLASH, THEME
ksplash-theme-NAME: for KSPLASH
kdm-theme-NAME: for KDM
xfce-theme-NAME: for XFCE themes
cinnamon-theme-NAME: for Cinnamon themes
mate-theme-NAME: for MATE themes
gnome-theme-NAME: for Gnome themes
NAME-icon-theme: for icon themes
NAME-theme: for common themes

I hope those standards are fine with you guys.

Followed themes need to be renamed next time:
Code: [Select]
dark-nature-2013.05-3    > kde-theme-dark-nature
le3_kdm-2013.05-1    > kdm-theme-le3
le3_ksplash-2013.05-1    > ksplash-theme-le3
manjaro-amarok-splash-2013.05-1    > ksplash-theme-manjaro-amarok
manjaro-amarok_kdm-2013.05-1    > kdm-theme-manjaro-amarok
manjaro-elegant-splash-2013.05-1   > ksplash-theme-manjaro-elegant
manjaro-elegant_kdm-2013.05-1    > kdm-theme-manjaro-elegant
manjaro-green_kdm-2013.05-1    > kdm-theme-manjaro-green
manjaro-kdm-splash-2013.05-1    > kdm-theme-manjaro
manjaro-rock_kdm-2013.05-1    > kdm-theme-manjaro-rock
manjaro-shadow-green_kdm-2013.05-1 > kdm-theme-manjaro-shadow-green
mnjr-kde_kdm-2013.05-1    > kdm-theme-mnjr-kde

You also need to add conflicts, replaces, provides to your pkgbuild after it got renamed:
Code: [Select]
provides=('OLDNAME')
replaces=('OLDNAME')
conflicts=('OLDNAME')

A small example would be:

Code: [Select]
pkgname=kdm-theme-manjaro-elegant
pkgver=2012.06
pkgrel=1
provides=('manjaro-elegant_kdm')
replaces=('manjaro-elegant_kdm')
conflicts=('manjaro-elegant_kdm')

Also don't use _ or + in our names. Using - is just fine.

Offline cumali

  • Support Team
  • ****
  • Posts: 827
    • http://www.manjaro-tr.org/
  • Branch: stable
  • Desktop: Manjarobox, Xfce
  • GPU Card: ─░ntel
  • GPU driver: free
  • Kernel: Linux38-x86
  • Skill: Novice
Re: [How-To] package your themes for Manjaro
« Reply #1 on: 28. May 2013, 19:09:00 »
Nice tutorial. Thank you @philm :)

Offline YFDogan

  • Support Team
  • ****
  • Posts: 1211
    • http://www.manjaro-tr.org/
  • Branch: Stable
  • Desktop: KDE
  • GPU Card: Optimus (GeForce GT 540M)
  • GPU driver: Non-free
  • Kernel: Linux manjaro 3.14.4-1-MANJARO #1 SMP PREEMPT Mon May 19 15:45:30 EST 2014 x86_64 GNU/Linux
  • Skill: Novice
Re: [How-To] package your themes for Manjaro
« Reply #2 on: 28. May 2013, 19:15:27 »
Those are not in unstable repos brother:
Code: [Select]
dark-nature-2013.05-3    > kde-theme-dark-nature
le3_kdm-2013.05-1    > kdm-theme-le3
le3_ksplash-2013.05-1    > ksplash-theme-le3
manjaro-amarok-splash-2013.05-1    > ksplash-theme-manjaro-amarok
manjaro-amarok_kdm-2013.05-1    > kdm-theme-manjaro-amarok
manjaro-elegant-splash-2013.05-1   > ksplash-theme-manjaro-elegant
manjaro-elegant_kdm-2013.05-1    > kdm-theme-manjaro-elegant
manjaro-green_kdm-2013.05-1    > kdm-theme-manjaro-green
manjaro-kdm-splash-2013.05-1    > kdm-theme-manjaro
manjaro-rock_kdm-2013.05-1    > kdm-theme-manjaro-rock
manjaro-shadow-green_kdm-2013.05-1 > kdm-theme-manjaro-shadow-green
mnjr-kde_kdm-2013.05-1    > kdm-theme-mnjr-kde
Manjaro Linux with DELL Insipiron N5110 i7 8GB Ram, Nvidia-Optimus
http://manjaro-tr.org/forum/index.php

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: [How-To] package your themes for Manjaro
« Reply #4 on: 29. May 2013, 02:31:57 »
I will repack them all, now I have some guide lines it makes it easier thank you.

Offline reeta

  • Neuling
  • *
  • Posts: 1
  • Skill: Novice
Re: [How-To] package your themes for Manjaro
« Reply #5 on: 30. January 2014, 09:10:44 »
Definitely an interesting technique. Mostly for things that can't be easily machined due to their shape   
Our braindump course focuses mainly on vexel artwork. Learn the best IT  practices using 200-120 braindumps

Offline drawDaeye

  • Sr. Mitglied
  • ****
  • Posts: 350
  • I broke it and didn't try.
  • Branch: Stable
  • Desktop: KDE (community)
  • GPU Card: ATi Radion HD 7970
  • GPU driver: non-free drivers
  • Kernel: linux 3.13.6-1Manjaro-x64
  • Skill: Intermediate
Re: [How-To] package your themes for Manjaro
« Reply #6 on: 10. April 2014, 01:22:51 »
Thank you for the guide philm.
This is the next step for me after I learn some qml inorder to build a ksplash login. ksplasherx just doesn't cut it.
Do know of any links to make them using qtcreator?
Thanks.
Cheers!

Offline Beto

  • Jr. Mitglied
  • **
  • Posts: 97
  • I'm newBe nice!
  • Branch: Stable/
  • Desktop: KDE Plasma 5.6/JWM
  • GPU Card: ATI Radeon HD 2600
  • GPU driver: Free
  • Kernel: Linux44
  • Skill: Novice
Re: [How-To] package your themes for Manjaro
« Reply #7 on: 03. March 2016, 11:37:25 »
Oh snap I've just noticed this tut.
So, yeah...