-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
56 lines (46 loc) · 1.65 KB
/
PKGBUILD
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
##
## * https://wiki.archlinux.org/title/Arch_User_Repository
## * https://archlinux.org/groups/x86_64/base-devel/
## * https://wiki.archlinux.org/title/pacman
## * https://wiki.archlinux.org/title/PKGBUILD
##
pkgname=archcraft-openbox-style-select
pkgver=0.1
pkgrel=2
pkgdesc="Style Select Tool for Archcraft Openbox."
url="https://github.com/samhelp/archcraft-openbox-style-select"
arch=('any')
license=('MIT')
makedepends=()
#depends=()
depends=('fzf' 'ueberzug')
#depends=('archcraft-openbox' 'fzf' 'ueberzug')
#depends=('archcraft-openbox')
#optdepends=('fzf: fzf list' 'ueberzug: fzf image preview')
conflicts=()
provides=("${pkgname}")
options=(!strip !emptydirs)
prepare() {
cp -af ../asset/. "${srcdir}"
}
package() {
## Path
local sys_bin_dir_path="${pkgdir}/usr/bin"
local sys_share_dir_path="${pkgdir}/usr/share/${pkgname}"
#local sys_share_style_dir_path="${sys_share_dir_path}/style"
local sys_bash_completion_dir_path="${pkgdir}/usr/share/bash-completion/completions"
local sys_bash_completion_file_path="${sys_bash_completion_dir_path}/archcraft-openbox-style-select"
## prepare dir
#mkdir -p "$sys_bin_dir_path"
mkdir -p "$sys_share_dir_path"
#mkdir -p "$sys_bash_completion_dir_path"
## install main script
## /usr/bin/archcraft-openbox-style-select
install -Dm755 "${srcdir}/${pkgname}" "${sys_bin_dir_path}/${pkgname}"
## install share files
## /usr/share/archcraft-openbox-style-select/style
cp -af "${srcdir}/share/style" "${sys_share_dir_path}"
## install bash-completion
## /completion/bash/archcraft-openbox-style-select
install -Dm644 "${srcdir}/completion/bash/archcraft-openbox-style-select" "${sys_bash_completion_file_path}"
}