yochananmarqos

x11-emoji-picker-git

May 12th, 2021
1,190
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=x11-emoji-picker-git
  2. pkgver=0.7.2.r4.g2135e79
  3. pkgrel=1
  4. pkgdesc='Linux XServer emoji picker written in C++.'
  5. arch=('x86_64')
  6. url="https://github.com/GaZaTu/x11-emoji-picker"
  7. license=('MIT')
  8. depends=('qt5-base' 'icu' 'xdotool')
  9. makedepends=('cmake' 'git')
  10. provides=("${pkgname%-git}")
  11. conflicts=("${pkgname%-git}")
  12. source=('git+https://github.com/GaZaTu/x11-emoji-picker.git')
  13. md5sums=('SKIP')
  14.  
  15. pkgver() {
  16.     cd "$srcdir/${pkgname%-git}"
  17.     git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  18. }
  19.  
  20. build() {
  21.     cmake -B build -S "${pkgname%-git}" \
  22.         -DCMAKE_BUILD_TYPE='None' \
  23.         -Wno-dev
  24.     make -C build
  25. }
  26.  
  27. package() {
  28.     make -C build DESTDIR="$pkgdir" install
  29.  
  30.     cd "$srcdir/${pkgname%-git}"
  31.     install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
  32. }
RAW Paste Data