summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38db046a628c109c0810d5e4e4c829c06a042652 (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
# Maintainer: Nikita Ivanov <nikita dot vyach dot ivanov at gmail dot com>
_name=dmenu-translate
pkgname="$_name-git"
pkgver=r26.e02ece5
pkgrel=1
pkgdesc="Quick text translation with dmenu"
arch=('any')
url="https://github.com/NikitaIvanovV/dmenu-translate"
provides=("$_name")
license=('MIT')
depends=('dmenu' 'translate-shell' 'xclip' 'libnotify')
source=("git+$url")
sha512sums=('SKIP')

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

package() {
    local license_prefix="$pkgdir/usr/share/licenses/$pkgname"
    mkdir -p "$license_prefix"
    cp "$srcdir/$_name/LICENSE" "$license_prefix"

    cd "$srcdir/${_name}"
	make PREFIX="/usr" DESTDIR="$pkgdir" install
}