Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
25 lines
400 B
Bash
25 lines
400 B
Bash
pkgname=mygit
|
|
pkgver=r1.abc
|
|
pkgrel=1
|
|
pkgdesc="VCS package example"
|
|
arch=(x86_64)
|
|
url="https://example.org"
|
|
depends=('git')
|
|
source=("git+https://example.org/repo.git")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$srcdir/repo"
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/repo"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/repo"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|