From 085b71cf07ed8cfc0d8d5488845546d97763d17e Mon Sep 17 00:00:00 2001 From: tuftedocelot Date: Wed, 25 Feb 2015 12:22:58 -0600 Subject: [PATCH 1/3] Add PKGBUILD to contrib Create a contrib folder for optional extras --- contrib/PKGBUILD | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 contrib/PKGBUILD diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD new file mode 100644 index 0000000..74d30ae --- /dev/null +++ b/contrib/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: tuftedocelot@fastmail.fm +_pkgname=exa +pkgname=${_pkgname}-git +pkgver=257 +pkgrel=1 +pkgdesc='Replacement for ls written in Rust.' +arch=('i686' 'x86_64') +url="https://github.com/ogham/exa" +license='GPLv3' +makedepends=('cmake' 'rust-nightly-bin' 'libgit2') +source=("git+https://github.com/ogham/exa.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + git rev-list --count HEAD +} + +package() { + cd "$srcdir/$_pkgname" + cargo build + install -Dm755 "$srcdir/$_pkgname/target/$_pkgname" "$pkgdir/usr/bin/$_pkgname" +} From e86369ba1ba06a9471c36b3117272f9f5dee82cc Mon Sep 17 00:00:00 2001 From: tuftedocelot Date: Wed, 25 Feb 2015 12:26:13 -0600 Subject: [PATCH 2/3] Update PKGBUILD to current version in AUR --- contrib/PKGBUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD index 74d30ae..f05f6fc 100644 --- a/contrib/PKGBUILD +++ b/contrib/PKGBUILD @@ -1,12 +1,13 @@ # Maintainer: tuftedocelot@fastmail.fm _pkgname=exa pkgname=${_pkgname}-git -pkgver=257 +pkgver=270 pkgrel=1 pkgdesc='Replacement for ls written in Rust.' arch=('i686' 'x86_64') url="https://github.com/ogham/exa" -license='GPLv3' +license='MIT' +depends=('libssh2') makedepends=('cmake' 'rust-nightly-bin' 'libgit2') source=("git+https://github.com/ogham/exa.git") md5sums=('SKIP') @@ -18,6 +19,6 @@ pkgver() { package() { cd "$srcdir/$_pkgname" - cargo build - install -Dm755 "$srcdir/$_pkgname/target/$_pkgname" "$pkgdir/usr/bin/$_pkgname" + cargo build --release + install -Dm755 "$srcdir/$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname" } From a830d49d85ac391447daed58b80ff17adec45271 Mon Sep 17 00:00:00 2001 From: tuftedocelot Date: Thu, 26 Feb 2015 13:28:52 -0600 Subject: [PATCH 3/3] add man page to PKGBUILD --- contrib/PKGBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD index f05f6fc..cfc35a5 100644 --- a/contrib/PKGBUILD +++ b/contrib/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: tuftedocelot@fastmail.fm _pkgname=exa pkgname=${_pkgname}-git -pkgver=270 +pkgver=303 pkgrel=1 pkgdesc='Replacement for ls written in Rust.' arch=('i686' 'x86_64') @@ -19,6 +19,7 @@ pkgver() { package() { cd "$srcdir/$_pkgname" - cargo build --release + make install -Dm755 "$srcdir/$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname" + install -Dm644 "$srcdir/$_pkgname/man/$_pkgname.1" "$pkgdir/usr/share/man/man1/$_pkgname.1" }