diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..39bcec307f96 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = aura-git + pkgdesc = A package manager for Arch Linux and its AUR + pkgver = 2.0.0.r1459.4f208e8 + pkgrel = 1 + url = https://github.com/aurapm/aura + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = stack + depends = gmp + depends = zlib + provides = aura + conflicts = aura + conflicts = aura-bin + options = strip + source = aura-git::git+https://github.com/aurapm/aura.git + md5sums = SKIP + +pkgname = aura-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ecc2fe92232e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: zargbell <zargbell@yandex.ru> +pkgname="aura-git" +pkgver=2.0.0.r1459.4f208e8 +pkgrel=1 +pkgdesc="A package manager for Arch Linux and its AUR" +arch=("x86_64") +url="https://github.com/aurapm/aura" +license=("GPL3") +depends=("gmp" "zlib") +makedepends=("git" "stack") +optdepends=() +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}" "${pkgname%-git}-bin") +replaces=() +options=("strip") +source=("${pkgname}"::"git+https://github.com/aurapm/aura.git") +md5sums=("SKIP") + + +pkgver() { + cd "${srcdir}/${pkgname}" + printf "%s.r%s.%s" "$(awk -F"\"" '($1 == "auraVersion = ") {print $2}' aura/exec/aura.hs)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname}" + mkdir -p bin + stack --jobs "$[$(nproc)+1]" --local-bin-path "bin/" install -- aura +} + +package() { + install -Dm755 "${srcdir}/${pkgname}/bin/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}" +}
\ No newline at end of file |