blob: 28db47243d6dba0628316946693f25a38c09c22b (
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
|
# Maintainer: wallace < str(11) + my_id at gmail dot com>
pkgname=dotbare
pkgdesc="Manage your dotfiles interactively with fzf"
pkgver=1.3.1
pkgrel=1
arch=("any")
url="https://github.com/kazhala/dotbare"
license=("MIT")
depends=('fzf')
optdepends=(
'tree: Provide a directory tree view when finding directory'
'bat: Syntax highlighting when previewing files'
'highlight: Syntax highlighting when previewing files'
'ruby-coderay: Syntax highlighting when previewing files'
'git-delta: Fancy git diff preview'
'diff-so-fancy: Fancy git diff preview')
source=("https://github.com/kazhala/dotbare/archive/v${pkgver}.tar.gz" "${pkgname}")
md5sums=('d330aa1fe4b072e2ab6d8762d4d3be7f'
'f6c62c573ace6e97e1948944cf6454cd')
package() {
src="${srcdir}/${pkgname}-${pkgver}"
dest="${pkgdir}/opt/${pkgname}"
# create dirs
install -d ${dest}/{,helper,scripts}
# main script
install -Dm 755 ${src}/${pkgname} ${dest}
# additional dirs contents
for dir in helper scripts; do
install -Dm 755 ${src}/${dir}/* ${dest}/${dir}
done
# HACK: remove upgrade script since we're not on the git repo
rm ${dest}/scripts/fupgrade
# custom "launcher" script
install -Dm 755 ${srcdir}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
}
|