diff options
author | Wesley Moore | 2019-08-26 08:57:05 +1000 |
---|---|---|
committer | Wesley Moore | 2019-08-26 08:57:05 +1000 |
commit | e1fddeafdfbaf18f20e5ec6169d765eeb1c46c7b (patch) | |
tree | d756707bbd3e81f103a7c9d7a753bd2bb345d01a | |
download | aur-e1fddeafdfbaf18f20e5ec6169d765eeb1c46c7b.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a82d8fe1ccc9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = pastel + pkgdesc = A command-line tool to generate, analyze, convert and manipulate colors + pkgver = 0.5.2 + pkgrel = 1 + url = https://github.com/sharkdp/pastel + arch = x86_64 + license = MIT + license = Apache + makedepends = rust + makedepends = cargo + conflicts = pastel-git + source = 0.5.2.tar.gz::https://github.com/sharkdp/pastel/archive/v0.5.2.tar.gz + sha256sums = 9a18110c21e13c43d4b3b2d7b4e6a2b6e06bcf07dc7c95cbaff1e62406c37db7 + +pkgname = pastel + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..30e1a37807b3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Wesley Moore <wes@wezm.net> + +pkgname=pastel +pkgver=0.5.2 +pkgrel=1 +pkgdesc='A command-line tool to generate, analyze, convert and manipulate colors' +arch=('x86_64') +url="https://github.com/sharkdp/pastel" +license=('MIT' 'Apache') +depends=() +conflicts=('pastel-git') +makedepends=('rust' 'cargo') +source=("$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('9a18110c21e13c43d4b3b2d7b4e6a2b6e06bcf07dc7c95cbaff1e62406c37db7') + +build() { + cd "$pkgname-$pkgver" + cargo build --release +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" + for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done +} |