Skip to content

Commit 924a15f

Browse files
authored
+pkgm (#8419)
1 parent 92c9c61 commit 924a15f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

projects/pkgx.sh/pkgm/package.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
distributable:
2+
url: https://github.com/pkgxdev/pkgm/releases/download/{{ version.tag }}/pkgm-{{ version }}.tgz
3+
4+
versions:
5+
github: pkgxdev/pkgm
6+
7+
provides:
8+
- bin/pkgm
9+
10+
dependencies:
11+
pkgx.sh: ^2
12+
curl.se/ca-certs: '*'
13+
14+
build:
15+
- install -Dm755 pkgm {{prefix}}/bin/pkgm
16+
17+
test:
18+
- pkgm --version | grep {{version}}
19+
- |
20+
if [ $(uname) = Darwin ]; then
21+
pkgm local-install dua
22+
else
23+
pkgm install dua
24+
fi
25+
# ^^ our self hosted macs cannot need sudo and cannot run sudo
26+
- pkgm ls | grep dua
27+
- PATH=/usr/local/bin:$HOME/.local/bin:$PATH command -v dua
28+
# ^^ brewkit PATH removes /usr/local/bin
29+
- PATH=/usr/local/bin:$HOME/.local/bin:$PATH dua --version
30+
- pkgm uninstall dua

0 commit comments

Comments
 (0)