summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorzargbell2018-07-30 02:19:42 +0300
committerzargbell2018-07-30 02:19:42 +0300
commit6b1bbeec1917f31a7915ed03b9501e4d6940ed46 (patch)
treee298a5c53efa9990a49c639fc802f6ddf6b2572d
downloadaur-6b1bbeec1917f31a7915ed03b9501e4d6940ed46.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD33
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..39bcec307f9
--- /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 00000000000..ecc2fe92232
--- /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