summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormocihan2020-07-13 23:59:55 +0800
committermocihan2020-07-13 23:59:55 +0800
commit2c6d2150373edce71c779c8a6f57c7d199ec0753 (patch)
tree2f805cbcbd5a7e4f7f8a82f0b27b5c4fc984b551
parent8ff8ae9fc21669aedf704f08041d72f77d07b5cc (diff)
downloadaur-just-git.tar.gz
Add docs
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD29
2 files changed, 19 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8480d9ce71f..85e9f1676d6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,11 @@
pkgbase = just-git
pkgdesc = A handy way to save and run project-specific commands
- pkgver = 0.3.13.r0.849cdcb
+ pkgver = 0.6.1.r1.cea4a16
pkgrel = 1
url = https://github.com/casey/just
arch = i686
arch = x86_64
- license = APACHE
- license = custom:MIT
- license = custom:WTFPL
+ license = custom:CC0
makedepends = cargo
makedepends = git
depends = gcc-libs
diff --git a/PKGBUILD b/PKGBUILD
index 22dd96c01aa..d02e07eda5e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,24 @@
-# Maintainer: Fredy García <frealgagu at gmail dot com>
+# Maintainer: mocihan <ly50247@126.com>
+# Contributor: Fredy García <frealgagu at gmail dot com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=just-git
-pkgver=0.3.13.r0.849cdcb
+_realname="${pkgname%-git}"
+pkgver=0.6.1.r1.cea4a16
pkgrel=1
pkgdesc="A handy way to save and run project-specific commands"
arch=("i686" "x86_64")
-url="https://github.com/casey/${pkgname%-git}"
-license=("APACHE" "custom:MIT" "custom:WTFPL")
+url="https://github.com/casey/${_realname}"
+license=("custom:CC0")
depends=("gcc-libs")
makedepends=("cargo" "git")
-provides=("${pkgname%-git}")
-conflicts=("${pkgname%-git}")
-source=("${pkgname%-git}::git+https://github.com/casey/${pkgname%-git}.git")
+provides=("${_realname}")
+conflicts=("${_realname}")
+source=("${_realname}::git+https://github.com/casey/${_realname}.git")
sha256sums=("SKIP")
pkgver() {
- cd "${srcdir}/${pkgname%-git}"
+ cd "${srcdir}/${_realname}"
(
set -o pipefail
git describe --long --tags 2> /dev/null | sed "s/^[A-Za-z\.\-]*//;s/\([^-]*-\)g/r\1/;s/-/./g" ||
@@ -25,12 +27,15 @@ pkgver() {
}
build() {
- cd "${srcdir}/${pkgname%-git}"
+ cd "${srcdir}/${_realname}"
cargo build --release
}
package() {
- cd "${srcdir}/${pkgname%-git}"
- install -Dm755 "${srcdir}/${pkgname%-git}/target/release/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
- install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd "${srcdir}/${_realname}"
+ install -Dm755 "target/release/${_realname}" "${pkgdir}/usr/bin/${_realname}"
+ install -Dm644 "man/${_realname}.1" "${pkgdir}/usr/share/man/man1/${_realname}.1"
+ install -Dm644 README.adoc "${pkgdir}/usr/share/doc/${_realname}/README.adoc"
+ install -Dm644 GRAMMAR.md "${pkgdir}/usr/share/doc/${_realname}/GRAMMAR.md"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_realname}/LICENSE"
}