92 lines
2.6 KiB
Bash
92 lines
2.6 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobextra/lxde/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgbase=lxlauncher
|
|
pkgname=(lxlauncher lxlauncher-gtk2)
|
|
pkgver=0.2.5
|
|
pkgrel=05
|
|
pkgdesc='Open source clone of the Asus launcher for EeePC'
|
|
url='https://lxde.org/'
|
|
depends=('gtk2' 'gtk3' 'startup-notification' 'lxmenu-data' 'menu-cache')
|
|
makedepends=('intltool')
|
|
backup=('etc/xdg/lxlauncher/gtk.css'
|
|
'etc/xdg/lxlauncher/gtkrc'
|
|
'etc/xdg/lxlauncher/settings.conf')
|
|
source=(https://downloads.sourceforge.net/lxde/$pkgbase-$pkgver.tar.xz
|
|
0001-Add-CSS-selectors-for-GTK-3.20-and-newer.patch
|
|
fix-invisible-icons.patch)
|
|
|
|
prepare() {
|
|
cd $pkgbase-$pkgver
|
|
|
|
# Add CSS selectors for GTK+ 3.20 and newer
|
|
# https://sourceforge.net/p/lxde/patches/543/
|
|
patch -Np1 -i ../0001-Add-CSS-selectors-for-GTK-3.20-and-newer.patch
|
|
|
|
# Fix invisible icons with GTK+ 3
|
|
patch -Np1 -i ../fix-invisible-icons.patch
|
|
}
|
|
|
|
build() {
|
|
# GTK+ 2 version
|
|
[ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2
|
|
cd gtk2
|
|
./configure \
|
|
--sysconfdir=/etc \
|
|
--prefix=/usr \
|
|
--disable-gtk3 \
|
|
--enable-gtk2 \
|
|
--disable-dbus
|
|
make
|
|
|
|
cd "$srcdir"
|
|
# GTK+ 3 version
|
|
[ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3
|
|
cd gtk3
|
|
./configure \
|
|
--sysconfdir=/etc \
|
|
--prefix=/usr \
|
|
--disable-gtk2 \
|
|
--enable-gtk3 \
|
|
--disable-dbus
|
|
make
|
|
}
|
|
|
|
package_lxlauncher() {
|
|
groups=('jobo-lxde')
|
|
pkgdesc+=' (GTK+ 3 version)'
|
|
conflicts=('lxlauncher-gtk2' 'lxlauncher-gtk3')
|
|
depends=('gtk3' 'startup-notification' 'lxmenu-data' 'menu-cache')
|
|
|
|
cd gtk3
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
package_lxlauncher-gtk2() {
|
|
groups=('jobo-lxde-gtk2')
|
|
pkgdesc+=' (GTK+ 2 version)'
|
|
depends=('gtk2' 'startup-notification' 'lxmenu-data' 'menu-cache')
|
|
conflicts=('lxlauncher' 'lxlauncher-gtk3')
|
|
|
|
cd gtk2
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL2')
|
|
|
|
sha256sums=(cd14b59cf337e7ba0d67efc95cd79859ab5f0f85af5a84c7aff771f868c3dca7 # lxlauncher-0.2.5.tar.xz
|
|
794a92dda67f055a794315af4d1a1b0d3319da836582fbc88bbaa3f737612f70 # 0001-Add-CSS-selectors-for-GTK-3.20-and-newer.patch
|
|
34fd1774d962965795eac8002d77a17078a967e2812ebae3e71d35533e1b3799) # fix-invisible-icons.patch
|
|
|
|
## 28772e755764ad0d56b8d305eb7e193cf2f6b2f6aac6a858e51c2892be1115c6 lxlauncher-0.2.5-05-x86_64.pkg.tar.lz
|
|
## a45a7b08bf5dd2fc0cc4839a8a102074eabd989272ee8311c11a970dc493de31 lxlauncher-gtk2-0.2.5-05-x86_64.pkg.tar.lz
|
|
|