Files
binary-repo/lxde/base/lxpanel/ympbuild
T
2025-05-18 11:54:24 +00:00

56 lines
1.3 KiB
Bash

#!/usr/bin/env bash
name='lxpanel'
release='2'
version='0.11.0'
url='https://wiki.lxde.org/en/LXPanel'
description='Lightweight X11 desktop panel for LXDE '
email='bayramk@gmail.com'
maintainer='bk'
license=('GPLv3')
source=("https://github.com/lxde/lxpanel/archive/refs/tags/$version.tar.gz"
"lxpanel-0.10.1-c99.patch")
depends=(libwnck3 wireless-tools libkeybinder3 alsa-lib curl libX11 libfm libxml2)
makedepends=()
sha256sums=('3a681a0902684457c6c1f7ff7fd1b6c7c16883fba1822e248347f992cf3f9ce2'
'SKIP')
group=(lxde.base)
uses=()
arch=('x86_64')
cd $name-$version
export CC=clang
export CFLAGS="-Wno-all -O2 -s"
export CXXFLAGS="-Wno-all -O2 -s"
CFLAGS="$CFLAGS -I/usr/include/libwnck-3.0"
prepare(){
# Disable pager plugin as it breaks panel layout with GTK+ 3
# https://sourceforge.net/p/lxde/bugs/773/
sed -i '/pager.c/d' plugins/Makefile.am
sed -i '/STATIC_PAGER/d' src/private.h
sed -i 's/libwnck-3.0//' configure.ac
sed -i 's/background=1/background=0/' data/default/panels/panel.in
}
setup(){
autoreconf -fvi
./configure --prefix=/usr \
--libdir=/usr/lib64/ \
--enable-gtk3 \
--disable-silent-rules \
--with-plugins=all,-cpufreq
}
build(){
make $jobs
}
package(){
make install $jobs
}