contrib/tint2/Pkgfile

25 lines
769 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
2016-03-30 15:59:44 +02:00
# Maintainer: Danny Rawlins, crux at romster dot me
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
2016-03-30 15:59:44 +02:00
release=1
2022-12-15 11:02:04 +01:00
source=(https://gitlab.com/nick87720z/tint2/-/archive/v$version/$name-$version.tar.gz)
2009-12-30 09:04:51 +01:00
build() {
2022-12-15 11:02:04 +01:00
cmake -S $name-v$version-57e96cee7c98c0f272befd34fd959964052e51c4 -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
2020-11-07 18:01:12 +01:00
cmake --build build -j ${JOBS:-1}
DESTDIR=$PKG cmake --install build
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
}