summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3035cba49e9c18a5e2cbedec63ed01dfad287f84 (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
# Maintainer: zneix <zneix@zneix.eu>

pkgname=x11-emoji-picker-git
pkgver=0.7.2.r4.g2135e79
pkgrel=1
pkgdesc='Linux XServer emoji picker written in C++.'
arch=('x86_64' 'armv7h')
url=https://github.com/GaZaTu/x11-emoji-picker
license=('MIT')
depends=('qt5-base' 'icu' 'xdotool')
makedepends=('cmake' 'git')
provides=('x11-emoji-picker')
conflicts=('x11-emoji-picker')
source=('x11-emoji-picker::git+https://github.com/GaZaTu/x11-emoji-picker')
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/x11-emoji-picker"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/x11-emoji-picker"
    mkdir -p build
    cd build
    cmake -DCMAKE_BUILD_TYPE=None ..
    make
}

package() {
    cd "$srcdir/x11-emoji-picker"
    install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/x11-emoji-picker"

    cd build
    make DESTDIR="$pkgdir" install
}