summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateen Ulhaq2019-05-28 06:00:35 -0700
committerMateen Ulhaq2019-05-28 06:00:35 -0700
commit3efd0d78ce22fa2c34fe9a518e521c67597bec5f (patch)
tree7c3bb64c5b43cf2768b2980a5671460d6ce8acd8
parent5a58e65620c60c8dd1a8ac514bbe87550a3ed371 (diff)
downloadaur-3efd0d78ce22fa2c34fe9a518e521c67597bec5f.tar.gz
Changed srcdir from - to
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 010c64c1037..243f6593296 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -10,7 +10,7 @@ pkgbase = frece-git
depends = gcc-libs
provides = frece
conflicts = frece
- source = frece-git-1.0.0.r1.g4d037d3::git+https://github.com/SicariusNoctis/frece
+ source = frece-git::git+https://github.com/SicariusNoctis/frece
sha256sums = SKIP
pkgname = frece-git
diff --git a/PKGBUILD b/PKGBUILD
index f741c0639dd..4e4c120f610 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,21 +11,21 @@ depends=("gcc-libs")
makedepends=("cargo" "git")
provides=("frece")
conflicts=("frece")
-source=("$pkgname-$pkgver::git+https://github.com/SicariusNoctis/frece")
+source=("$pkgname::git+https://github.com/SicariusNoctis/frece")
sha256sums=("SKIP")
pkgver() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
cargo build --release
}
package() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
install -Dm755 "target/release/frece" "$pkgdir/usr/bin/frece"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/frece/LICENSE"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/frece/README.md"