This commit is contained in:
2024-07-24 19:38:44 +02:00
parent 610f94d1d4
commit d3d1b38f7e
3 changed files with 36 additions and 0 deletions

2
.gitignore vendored
View File

@@ -1 +1,3 @@
/target
*.tar.zst
/pkg

View File

@@ -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
View 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"
}