diff options
author | knight42 | 2017-02-04 16:43:06 +0800 |
---|---|---|
committer | knight42 | 2017-02-04 16:43:06 +0800 |
commit | 1c54c85a7785629f2a789c53027510b1b52a926b (patch) | |
tree | 3019e6517dccbefc06785c4de37ff13f6344f2ff | |
download | aur-1c54c85a7785629f2a789c53027510b1b52a926b.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..561bd1038c0b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = cargo-expand + pkgdesc = Subcommand to show result of macro expansion and `#[derive]` expansion + pkgver = 0.3.7 + pkgrel = 1 + url = https://github.com/dtolnay/cargo-expand + arch = i686 + arch = x86_64 + license = APACHE + license = MIT + depends = cargo + source = https://github.com/dtolnay/cargo-expand/archive/0.3.7.tar.gz + md5sums = 6a150207559c1902db5539e5bad8a439 + +pkgname = cargo-expand + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c8b9753802c3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Jian Zeng <anonymousknight96 AT gmail.com> + +pkgname=cargo-expand +pkgver=0.3.7 +pkgrel=1 +pkgdesc='Subcommand to show result of macro expansion and `#[derive]` expansion' +arch=('i686' 'x86_64') +url='https://github.com/dtolnay/cargo-expand' +license=('APACHE' 'MIT') +depends=('cargo') +source=("https://github.com/dtolnay/$pkgname/archive/$pkgver.tar.gz") +md5sums=('6a150207559c1902db5539e5bad8a439') + +build() { + cd "$pkgname-$pkgver" || exit 1 + cargo build --release +} + +package() { + cd "$pkgname-$pkgver" || exit 1 + install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE" + install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT" +} |