Pkgfile 851 B

123456789101112131415161718192021222324252627
  1. # Description: Lightweight panel/taskbar.
  2. # URL: https://gitlab.com/nick87720z/tint2
  3. # Maintainer: Daniel Azevedo, daniazevedo77 at posteo dot net
  4. # Depends on: imlib2 librsvg startup-notification xorg-libxcomposite xorg-libxdamage xorg-libxinerama xorg-libxrandr
  5. # originally found at contrib repo, by John McQuah, jmcquah at disroot dot org (with slight mods).
  6. name=tint2
  7. version=17.1.3
  8. release=2
  9. source=(https://gitlab.com/nick87720z/$name/-/archive/$version/$name-$version.tar.bz2)
  10. build() {
  11. cmake -S $name-$version -B build -G Ninja \
  12. -D CMAKE_INSTALL_PREFIX=/usr \
  13. -D CMAKE_BUILD_TYPE=Release \
  14. -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
  15. -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
  16. -D ENABLE_TINT2CONF=ON \
  17. -Wno-dev
  18. ninja -C build -j ${JOBS:-1}
  19. DESTDIR=$PKG ninja -C build install
  20. rm -rf $PKG/{etc,usr/share/doc,usr/share/locale/}
  21. }