blob: c42f94b033d89a08bc46785ae8afd4d8155ba633 (
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
|
# Maintainer: Marcin Mikołajczak <me@m4sk.in>
pkgname=splatmoji-git
_pkgname=splatmoji
pkgver=r7.dc850cd
pkgrel=1
pkgdesc="Quickly look up and input emoji and/or emoticons/kaomoji on your GNU/Linux desktop via pop-up menu."
arch=('any')
url="https://github.com/cspeterson/$_pkgname"
license=('MIT')
depends=('rofi' 'xdotool' 'xsel')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/cspeterson/$_pkgname.git")
install=splatmoji-git.install
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
rm -rf "$_pkgname/{.git/, .git* ,README.md}"
}
package() {
cd "$srcdir/$_pkgname"
mkdir -p "$pkgdir"/usr/bin/
mkdir -p "$pkgdir/usr/share/$_pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
cp -a --no-preserve=ownership * "$pkgdir/usr/share/$_pkgname"
cat > "$pkgdir/usr/bin/$_pkgname" << EOF
#!/bin/sh
cd /usr/share/splatmoji
exec bash splatmoji "\${@}"
EOF
chmod a+x "$pkgdir/usr/bin/$_pkgname"
}
|