summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4273195a6d6c3319d0b4ef57a994035a0cee6557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Leadseason <admin@leadseason.eu>

pkgname=rofi-emoji-git
_pkgname=rofi-emoji
pkgver=r73.7f68772
pkgrel=1
pkgdesc='A Rofi plugin for selecting emojis'
url='https://github.com/Mange/rofi-emoji'
arch=('x86_64')
license=('MIT')
depends=('rofi')
checkdepends=('check')
optdepends=(
  'xsel: X11 support'
  'xclip: X11 support'
  'wl-clipboard: Wayland support'
)
makedepnds=(
  "git"
  "autoconf"
  "automake"
  "libtool"
)
conflicts=(${_pkgname})
source=(git+https://github.com/Mange/${_pkgname})
b2sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd ${_pkgname}
  autoreconf -i
  ./configure --prefix=/usr
  make
}

check() {
  cd ${_pkgname}
  make check
}

package() {
  cd ${_pkgname}
  make DESTDIR="${pkgdir}/" install
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}

# vim: ts=2 sw=2 et: