summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Toia2019-10-22 17:51:08 -0700
committerAlessandro Toia2019-10-22 17:51:08 -0700
commit2566d8c4d092df3b929e60e2e55fe09ae7f3336c (patch)
tree3b90a833903c5c45323c56f39ab57e1098e57da7
downloadaur-2566d8c4d092df3b929e60e2e55fe09ae7f3336c.tar.gz
Initial package
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD22
2 files changed, 35 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0ce90a22a96
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = permrs
+ pkgdesc = Utlity to save and restore unix permissions
+ pkgver = 0.1.0
+ pkgrel = 1
+ url = https://github.com/gort818/permrs
+ arch = x86_64
+ makedepends = rust
+ makedepends = cargo
+ source = https://github.com/gort818/permrs/archive/v.0.1.0.tar.gz
+ sha256sums = 82bd93f808e457dff53ec64026e945f2b490fd0ed8a58b08d6d190ff40a7b773
+
+pkgname = permrs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f7f288c2f16
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Alessandro Toia <gort818@gmail.com>
+pkgname=permrs
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Utlity to save and restore unix permissions'
+url='https://github.com/gort818/permrs'
+makedepends=('rust' 'cargo')
+arch=( 'x86_64')
+source=("https://github.com/gort818/$pkgname/archive/v.$pkgver.tar.gz")
+sha256sums=('82bd93f808e457dff53ec64026e945f2b490fd0ed8a58b08d6d190ff40a7b773')
+build() {
+ cd "$pkgname-v.$pkgver"
+ cargo build --release --locked
+}
+
+package() {
+ cd "$pkgname-v.$pkgver"
+ install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}"
+
+}