summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorb1tl0rd2019-12-08 15:40:31 -0300
committerb1tl0rd2019-12-08 15:40:31 -0300
commit720ad434445569a281578494cff38eba7f846f4a (patch)
tree2b9f72f5b04a352d4a077537b093a74bdfe27a83
downloadaur-720ad434445569a281578494cff38eba7f846f4a.tar.gz
sd-git
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD37
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0d7b3eceefd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = sd-git
+ pkgdesc = Intuitive find & replace CLI
+ pkgver = 0.6.5.161.g03a10c1
+ pkgrel = 1
+ url = https://github.com/chmln/sd
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = rust
+ makedepends = cargo
+ makedepends = git
+ provides = sd
+ conflicts = sd
+ source = sd::git+https://github.com/chmln/sd.git
+ sha256sums = SKIP
+
+pkgname = sd-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..85da50d2ab6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Walter C <bitlord@disroot.org>
+
+pkgname="sd-git"
+_pkgname="sd"
+pkgver=0.6.5.161.g03a10c1
+pkgrel=1
+pkgdesc="Intuitive find & replace CLI"
+arch=("i686" "x86_64")
+url="https://github.com/chmln/sd"
+license=("MIT")
+depends=()
+makedepends=("rust" "cargo" "git")
+provides=("sd")
+conflicts=("sd")
+source=("$_pkgname::git+https://github.com/chmln/sd.git")
+sha256sums=("SKIP")
+
+pkgver() {
+ cd "$_pkgname"
+ echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ cargo build --release --locked
+}
+
+check() {
+ cd $_pkgname
+ cargo test --release --locked
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+} \ No newline at end of file