blob: 9d265b27e0728f8f5033e3a2a1c1c2fec9c1c499 (
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
41
42
43
|
pkgname=spm-arch
pkgver=1.0.0
pkgrel=1
pkgdesc="Simple FZF Package Manager Wrapper for Arch Linux"
arch=('any')
url="https://github.com/adelmonte/Simple_Package_Manager"
license=('GPL v3.0')
depends=('bash' 'fzf' 'yay')
optdepends=('fish: for fish shell integration')
provides=('spm')
conflicts=('spm')
source=("$pkgname-$pkgver.tar.gz::$url/releases/download/v.$pkgver/spm-$pkgver.tar.gz")
sha256sums=('f65ba39920f7e0f9cdb344cc369abb29b308788057637aa0936763f7c6081c24')
package() {
cd "$srcdir"
# Install main script
install -Dm755 spm.sh "$pkgdir/usr/bin/spm"
# Install systemd service and timer
install -Dm644 spm_updates.timer "$pkgdir/usr/lib/systemd/system/spm_updates.timer"
install -Dm644 spm_updates.service "$pkgdir/usr/lib/systemd/system/spm_updates.service"
# Install Fish wrapper
install -Dm755 spm.fish "$pkgdir/usr/share/fish/vendor_functions.d/spm.fish"
# Install update script
install -Dm755 spm_updates.sh "$pkgdir/usr/bin/spm_updates"
# Post-install messages
echo "To complete the setup, run the following commands as needed:"
echo
echo "Enable Optional Shell Sources for standalone arguments:"
echo "↳ See 'spm --help' for more information"
echo
echo "1. For Bash users:"
echo "echo 'source /usr/bin/spm' >> ~/.bashrc"
echo
echo "2. For Fish users:"
echo "echo 'source /usr/share/fish/vendor_functions.d/spm.fish' >> ~/.config/fish/config.fish"
echo
echo "To enable (Required) available update checking:"
echo "systemctl enable --now spm_updates.timer"
echo
}
|