diff options
author | Kaizhao Zhang | 2018-09-14 15:36:14 +0800 |
---|---|---|
committer | Kaizhao Zhang | 2018-09-14 15:36:14 +0800 |
commit | 5a67d9b59a402ce4242ea687e0abaf94d87c3829 (patch) | |
tree | 68978164c3f71bf7597b2b8583cfaf442dd16300 | |
download | aur-5a67d9b59a402ce4242ea687e0abaf94d87c3829.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 26 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4f437e5924ae --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = remove_empty_subdirs + pkgdesc = Recursively remove empty sub-directories + pkgver = 0.1.1 + pkgrel = 1 + url = https://github.com/zhangkaizhao/remove_empty_subdirs + arch = x86_64 + license = MIT + license = Apache + makedepends = cargo + conflicts = remove_empty_subdirs-git + source = git+https://github.com/zhangkaizhao/remove_empty_subdirs.git#tag=v0.1.1 + sha256sums = SKIP + +pkgname = remove_empty_subdirs + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..924dfb95c209 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pkg/ +src/ +*.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4807f2f3c7ed --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com> + +pkgname=remove_empty_subdirs +pkgver=0.1.1 +pkgrel=1 +pkgdesc="Recursively remove empty sub-directories" +url="https://github.com/zhangkaizhao/remove_empty_subdirs" +makedepends=('cargo') +arch=('x86_64') +license=('MIT' 'Apache') +conflicts=('remove_empty_subdirs-git') +source=("git+${url}.git#tag=v${pkgver}") +sha256sums=('SKIP') + +build() { + cd "${srcdir}/${pkgname}" + cargo build --release --examples +} + +package() { + cd "${srcdir}/${pkgname}" + install -D -m755 target/release/examples/remove_empty_subdirs "${pkgdir}/usr/bin/remove_empty_subdirs" + install -D -m644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" + install -D -m644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT" + install -D -m644 LICENSE-APACHE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-APACHE" +} |