diff options
author | orhun | 2020-10-12 20:25:37 +0300 |
---|---|---|
committer | orhun | 2020-10-12 20:25:37 +0300 |
commit | 6bfcb772bc9a0f93f0bb0352dd99320eec330445 (patch) | |
tree | 6df730d843a91b91a154fb661f31a831d2ecc3ee | |
download | aur-6bfcb772bc9a0f93f0bb0352dd99320eec330445.tar.gz |
Initial upload: suckit 0.1.0-1
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ae7e0ee86665 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = suckit + pkgdesc = Recursively visit and download a website's content to your disk + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/Skallwar/suckit + arch = x86_64 + license = Apache + makedepends = cargo + source = suckit-0.1.0.tar.gz::https://github.com/Skallwar/suckit/archive/v0.1.0.tar.gz + sha512sums = 8ab90817a780bb69c060482fce9c9e501eac8ff8e73cff4b964e08334a5ce506ef08c0f23c3811b15db314a5e9c6f3711326646d993602e31344bac11f31fdf3 + +pkgname = suckit + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4dfb3a12837d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: orhun <orhunparmaksiz@gmail.com> +# https://github.com/orhun/pkgbuilds + +pkgname=suckit +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Recursively visit and download a website's content to your disk" +arch=('x86_64') +url="https://github.com/Skallwar/suckit" +license=('Apache') +makedepends=('cargo') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha512sums=('8ab90817a780bb69c060482fce9c9e501eac8ff8e73cff4b964e08334a5ce506ef08c0f23c3811b15db314a5e9c6f3711326646d993602e31344bac11f31fdf3') + +build() { + cd "$pkgname-$pkgver" + cargo build --release --locked --all-features +} + +check() { + cd "$pkgname-$pkgver" + # TODO: add `--release` flag after new release + # https://github.com/Skallwar/suckit/commit/d9c17d9ec2459732ca0dee7b057002ecf7efd04a + cargo test --locked --all-features +} + +package() { + cd "$pkgname-$pkgver" + install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" +} |