summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPierre Chevalier2017-03-07 02:48:18 +0000
committerPierre Chevalier2017-03-07 02:48:18 +0000
commit69805b49320c5002bf7c3553d9f6a432073ac4ae (patch)
tree12467dd8d70ff9ea0417dc84ebd9b2ef12b40676 /PKGBUILD
downloadaur-palette-rs.tar.gz
Create aur package for palette-rs from crates.io
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a351602b8ee
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+#Maintainer: Pierre Chevalier <pierrechevalier83@gmail.com>
+
+pkgname=palette-rs
+_pkgname=palette-rs
+pkgver=0.1.0
+pkgrel=1
+pkgdesc="A cli ansi color palette written in rust"
+url="https://github.com/pierrechevalier83/palette"
+makedepends=('cargo')
+arch=('i686' 'x86_64')
+license=('MIT')
+source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$_pkgname/$pkgver/download")
+sha256sums=('bb4fd341fb8d72eadab28d30272b85ce06e66fbeda497e4435f5a3bafbc790b1')
+build() {
+ cd "$_pkgname-$pkgver"
+ cargo build --release
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ install -Dm755 target/release/palette-rs "$pkgdir/usr/bin/palette-rs"
+}