mirror of
https://github.com/eRgo35/ah.git
synced 2025-12-14 22:06:11 +01:00
pkgbuild
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1,3 @@
|
||||
/target
|
||||
*.tar.zst
|
||||
/pkg
|
||||
@@ -1,8 +1,17 @@
|
||||
[package]
|
||||
name = "ah"
|
||||
version = "0.1.0"
|
||||
authors = ["Michał Czyż <mike@c2yz.com>"]
|
||||
edition = "2021"
|
||||
|
||||
description = "A declarative package manager for Arch Linux"
|
||||
homepage = "https://github.com/eRgo35/ah"
|
||||
repository = "https://github.com/eRgo35/ah"
|
||||
documentation = "https://github.com/eRgo35/ah"
|
||||
license = "MIT"
|
||||
keywords = ["archlinux", "declarative", "package", "aur", "paru"]
|
||||
readme = "README.md"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "4.5.10", features = ["derive"] }
|
||||
colored = "2.1.0"
|
||||
25
PKGBUILD
Normal file
25
PKGBUILD
Normal file
@@ -0,0 +1,25 @@
|
||||
# Maintainer: Michał Czyż <mike@c2yz.com>
|
||||
pkgname=ah
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="A declarative package manager for Arch Linux"
|
||||
url="https://github.com/eRgo35/ah"
|
||||
license=("MIT")
|
||||
arch=("x86_64")
|
||||
makedepends=("cargo")
|
||||
|
||||
pkgver() {
|
||||
(git describe --long --tags || echo "$pkgver") | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
build() {
|
||||
return 0
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ..
|
||||
usrdir="$pkgdir/usr"
|
||||
mkdir -p $usrdir
|
||||
cargo install --no-track --path . --root "$usrdir"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user