summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc16b0245812f22b5c7b35fe8a7de010b39d76fb (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
52
53
54
55
56
# Maintainer: Bharadwaj Raju <bharadwaj.raju@keemail.me>
# Contributor: Daniel Sandman (shellkr) <revoltism+AUR$gmail.com>
# Contributor: doylefermi

pkgname=textsuggest-git
_gitname=${pkgname%-git*}
pkgver=r35.ccbcbc9
pkgrel=1
pkgdesc='Simple Linux utility to autocomplete words using rofi'
arch=('any')
url="https://gitlab.com/bharadwaj-raju/TextSuggest"
license=('GPL3')
depends=('python' 'dbus-c++' 'qt5-base' 'xdotool' 'xclip' 'libxcb')
makedepends=('git' 'gcc' 'make' 'automake')
provides=("$_gitname")
source=("$_gitname::git+https://gitlab.com/bharadwaj-raju/TextSuggest.git")
md5sums=('SKIP')

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

build() {
	cd "$srcdir/$_gitname"
	sh build.sh
}

package() {

	cd "$srcdir/$_gitname"

    install -d "$pkgdir/usr/share/textsuggest"
    install -d "$pkgdir/usr/bin"

	cp -rf textsuggest/dictionaries/ "$pkgdir/usr/share/textsuggest/"

	install -d "$pkgdir/usr/share/textsuggest/processors"
	cp bin/math_expression "$pkgdir/usr/share/textsuggest/processors"
	cp bin/command "$pkgdir/usr/share/textsuggest/processors"

	install -D -m755 bin/textsuggest "$pkgdir/usr/bin/textsuggest"
	install -D -m755 bin/textsuggest-server "$pkgdir/usr/bin/textsuggest-server"

	chmod -R a+rwx "$pkgdir/usr/share/textsuggest/processors"

	install -D -m644 README.md "$pkgdir/usr/share/doc/textsuggest/README"
	install -D -m644 LICENSE "$pkgdir/usr/share/licenses/textsuggest/COPYING"

	chmod -R a+rw "$pkgdir/usr/share/textsuggest"
	chmod -R a+rw "$pkgdir/usr/share/textsuggest/dictionaries"
	chmod -R a+rw "$pkgdir/usr/share/textsuggest/dictionaries/*"
	chmod a+x "$pkgdir/usr/bin/textsuggest"
	chmod a+x "$pkgdir/usr/bin/textsuggest-server"

}