blob: 72c742e2cd083fc7918337ff0f2dad7cf3576131 (
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
|
# Maintainder: samedamci <samedamci@disroot.org>
pkgname=rofi-keepassxc-git
pkgver=1.1.r3.d773f5e
pkgrel=1
pkgdesc="Simple keepassxc-cli frontend in rofi"
arch=('any')
url="https://github.com/samedamci/rofi-keepassxc"
license=('MIT')
depends=('rofi' 'xclip' 'keepassxc' 'zsh')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=("${pkgname%-git}")
source=("git+https://github.com/samedamci/${pkgname%-git}.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' | cut -b 2-)"
}
package() {
cd "$srcdir/${pkgname%-git}" || exit 1
local doc_path="$pkgdir/usr/share/doc/${pkgname%-git}"
install -Dm755 "rofi-keepassxc" "$pkgdir/usr/bin/${pkgname%-git}"
install -Dm755 -d "$pkgdir/usr/share/doc/${pkgname%-git}"
install -Dm644 "README.md" "${doc_path}/README.md"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
}
|