Advertisement
Guest User

xfce-theme-manager PKGBUILD

a guest
Apr 30th, 2020
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.91 KB | None | 0 0
  1. # Maintainer: Mario Finelli <mario dot finelli at yahoo dot com>
  2. # Contributor: Martin F. Schumann <mfs at mfs dot name>
  3.  
  4. pkgname=xfce-theme-manager
  5. _pkgname=Xfce-Theme-Manager
  6. pkgver=0.3.8
  7. pkgrel=1
  8. pkgdesc="A theme manager allowing easy configuration of themes, window borders, controls, icons and cursors for Xfce."
  9. arch=('i686' 'x86_64')
  10. url="https://github.com/KeithDHedger/Xfce-Theme-Manager"
  11. license=("GPL3")
  12. depends=('gdk-pixbuf2' 'cairo' 'libxcursor' 'libxfce4ui')
  13. optdepends=('xfce4-composite-editor: A simple GUI to tweak xfwm, can be launched from xfce-theme-manager')
  14. makedepends=('pkg-config' 'make' 'autoconf')
  15. source=("https://github.com/KeithDHedger/Xfce-Theme-Manager/archive/xfce-theme-manager-${pkgver}.tar.gz")
  16. sha256sums=('110eea06a36096c0fc8bf2dd9fe03c90e066f42aebd91f71f1159e87dff99b6f')
  17.  
  18. build() {
  19.   cd "$srcdir"/$_pkgname-$pkgname-$pkgver
  20.   ./autogen.sh --prefix="$pkgdir"/usr
  21.   sed -i 's#/PREFIX/share/Xfce\\-Theme\\-Manager/scripts#/usr/share/xfce\\-theme\\-manager/scripts#g' "$srcdir"/$_pkgname-$pkgname-$pkgver/$_pkgname/resources/man/*
  22.   sed -i 's/Name=Xfce-Theme-Manager/Name=Xfce Theme Manager/g;s/^Comment.*/Comment=Control Xfce4 Themes, Icons, Cursors, Wallpapers and more/g' $_pkgname/resources/pixmaps/$_pkgname.desktop
  23. }
  24.  
  25. package() {
  26.   install -m 755 -d "$pkgdir"/usr/bin "$pkgdir"/usr/share/applications "$pkgdir"/usr/share/doc/xfce-theme-manager
  27.   cd "$srcdir"/$_pkgname-$pkgname-$pkgver
  28.   make CXXFLAGS="$CXXFLAGS -O3 -Wall `pkg-config --cflags --libs glib-2.0` `pkg-config --cflags --libs gdk-2.0` `pkg-config --cflags --libs gtk+-2.0` `pkg-config --cflags --libs xcursor` `pkg-config --cflags --libs gthread-2.0`" PREFIX="$pkgdir/usr" install
  29.   install -m 644 README* "$pkgdir"/usr/share/doc/$pkgname/
  30.   install -m 644 ChangeLog* "$pkgdir"/usr/share/doc/$pkgname/
  31.   mv "$pkgdir"/usr/share/{$_pkgname,$pkgname}
  32.   mv "$pkgdir"/usr/share/applications/{$_pkgname,$pkgname}.desktop
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement