contrib/tint2/Pkgfile

27 lines
797 B
Plaintext
Raw Normal View History

2016-03-30 15:59:44 +02:00
# Description: Lightweight panel/taskbar.
2022-12-15 11:02:04 +01:00
# URL: https://gitlab.com/nick87720z/tint2
2023-03-05 03:55:06 +01:00
# Maintainer: John McQuah, jmcquah at disroot dot org
2019-10-05 11:27:33 +02:00
# Depends on: imlib2 librsvg startup-notification xorg-libxcomposite xorg-libxdamage xorg-libxinerama xorg-libxrandr
2009-12-30 09:04:51 +01:00
name=tint2
2022-12-15 11:02:04 +01:00
version=17.1.3
release=2
source=(https://gitlab.com/nick87720z/$name/-/archive/$version/$name-$version.tar.bz2 $name-glib.patch)
2009-12-30 09:04:51 +01:00
build() {
patch -p1 -d $name-$version -i $SRC/$name-glib.patch
2023-03-05 03:55:06 +01:00
cmake -S $name-$version -B build -G Ninja \
2020-11-08 13:47:13 +01:00
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 01:07:37 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-08 13:47:13 +01:00
-D ENABLE_TINT2CONF=OFF \
-Wno-dev
2023-03-05 03:55:06 +01:00
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
2009-12-30 09:04:51 +01:00
2017-08-16 13:45:47 +02:00
rm -r $PKG/{etc,usr/share/doc}
2009-12-30 09:04:51 +01:00
}