diff options
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 28 |
3 files changed, 23 insertions, 19 deletions
@@ -1,6 +1,6 @@ -pkgbase = huniq-git +pkgbase = huniq pkgdesc = Filter out duplicates on the command line (git) - pkgver = r62.1d3c47e + pkgver = 2.7.0 pkgrel = 1 url = https://github.com/koraa/huniq arch = x86_64 @@ -8,7 +8,8 @@ pkgbase = huniq-git makedepends = cargo makedepends = git depends = gcc-libs - source = git+https://github.com/koraa/huniq + conflicts = huniq-git + source = huniq::git+https://github.com/koraa/huniq.git#commit=1e4d1f23bbb88c34f7c128f7eb4a500e97eabf4b sha512sums = SKIP -pkgname = huniq-git +pkgname = huniq diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..28f9e35a7654 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +huniq-*.pkg.tar.zst +huniq-*.pkg.tar.zst.sig +huniq/ +pkg/ +src/ @@ -1,8 +1,10 @@ -# Maintainer: orhun <orhunparmaksiz@gmail.com> +# Maintainer: qubidt <qubidt at gmail dot com> +# Contributor: orhun <orhunparmaksiz@gmail.com> # https://github.com/orhun/pkgbuilds -pkgname=huniq-git -pkgver=r62.1d3c47e +pkgname=huniq +conflicts=('huniq-git') +pkgver=2.7.0 pkgrel=1 pkgdesc="Filter out duplicates on the command line (git)" arch=('x86_64') @@ -10,33 +12,29 @@ url="https://github.com/koraa/huniq" license=('BSD') depends=('gcc-libs') makedepends=('cargo' 'git') -source=("git+${url}") +_commit='1e4d1f23bbb88c34f7c128f7eb4a500e97eabf4b' +source=("$pkgname::git+https://github.com/koraa/huniq.git#commit=$_commit") sha512sums=('SKIP') -pkgver() { - cd "${pkgname%-git}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" -} - prepare() { - cd "${pkgname%-git}" - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + cd "$pkgname" + cargo fetch --target "$CARCH-unknown-linux-gnu" } build() { - cd "${pkgname%-git}" + cd "$pkgname" sed -n '/Copyright/,//p' readme.md > LICENSE cargo build --release --frozen } check() { - cd "${pkgname%-git}" + cd "$pkgname" cargo test --frozen } package() { - cd "${pkgname%-git}" - install -Dm 755 "target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin" + cd "$pkgname" + install -Dm 755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin" install -Dm 644 readme.md -t "$pkgdir/usr/share/doc/$pkgname" install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" } |