blob: a788abc0df657b82fc0392a7eda31a053688f5c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Maintainer: RiverOnVenus <error@zhui.dev>
pkgname=pkg.sh-git
pkgver=0.2.0.r0.g4d4c643
pkgrel=1
pkgdesc="A generalized package manager for whatever code"
arch=(any)
url="https://github.com/tidwall/pkg.sh"
license=('MIT')
provides=('pkg.sh')
conflicts=('pkg.sh')
makedepends=('git')
source=("$pkgname"::"git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/-/.r/;s/-/./'
}
package() {
install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm755 "$srcdir/$pkgname/pkg.sh" "$pkgdir/usr/bin/pkg.sh"
}
|