blob: fed401471ba4392d9bcf77d4ae68197d559f7dc9 (
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
|
pkgname=dpw
pkgver=1.1.0
pkgrel=1
pkgdesc='Declarative Pacman Wrapper'
arch=(any)
optdepends=(
'paru: recommended pacman wrapper'
'aura: pacman wrapper'
'aurman: pacman wrapper'
'pacaur: pacman wrapper'
'pikaur: pacman wrapper'
'yay: pacman wrapper'
)
license=(GPL-3.0-or-later)
source=(dpw dpw.fish)
sha256sums=(
'4ad6164db071db5284677a40b896a50a7c7799ca4c5188366ffe210ed3423024'
'c2b828519653d3f2280d4904d7ad8924d2671986c9ad33af17ff60fba83522a1'
)
package() {
mkdir -p "${pkgdir}/usr/bin"
cp "${srcdir}/dpw" "${pkgdir}/usr/bin/dpw"
chmod +x "${pkgdir}/usr/bin/dpw"
# Add fish completions if fish shell is installed
if [ -x "$(command -v fish)" ]; then
if [ -d "/usr/share/fish/vendor_completions.d" ]; then
mkdir -p "/usr/share/fish/vendor_completions.d"
fi
sudo cp "${srcdir}/dpw.fish" "/usr/share/fish/vendor_completions.d/dpw.fish"
fi
}
|