diff options
author | caltlgin | 2020-12-05 13:47:07 +1300 |
---|---|---|
committer | caltlgin | 2020-12-05 13:47:07 +1300 |
commit | 91f5537234869807aafff32e2965a138608ba5eb (patch) | |
tree | 18abc7a50cc559bcd18c5d4b4b102b2fc99e7616 | |
parent | b323768b1e67d7d6217e68f4e2aec82c98ed04d6 (diff) | |
download | aur-git-brws.tar.gz |
Adopt PKGBUILD
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 28 insertions, 17 deletions
@@ -1,14 +1,13 @@ pkgbase = git-brws - pkgdesc = CLI tool to open repository URLs for GitHub, BitBucket and GitLab in your browser + pkgdesc = CLI tool to open repository, file, commit, diff, tag, pull request, blame, issue or project's website pkgver = 0.11.12 pkgrel = 1 - url = https://github.com/rhysd/git-brws + url = https://rhysd.github.io/git-brws/ arch = x86_64 license = MIT makedepends = cargo depends = openssl - conflicts = git-brws-git - source = 0.11.12.tar.gz::https://github.com/rhysd/git-brws/archive/v0.11.12.tar.gz + source = git-brws-0.11.12.tar.gz::https://github.com/rhysd/git-brws/archive/v0.11.12.tar.gz sha256sums = 3a4bbf93f0b16562260ca66c2b60c655d5bfc690d0229d11757be76d95cb81c5 pkgname = git-brws diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..623d0e70ff3e --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD + @@ -1,27 +1,34 @@ -# Maintainer: Wesley Moore <wes@wezm.net> +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> +# Contributor: Wesley Moore <wes@wezm.net> -pkgname=git-brws +pkgname='git-brws' pkgver=0.11.12 pkgrel=1 -pkgdesc='CLI tool to open repository URLs for GitHub, BitBucket and GitLab in your browser' +pkgdesc="CLI tool to open repository, file, commit, diff, tag, pull request, blame, issue or project's website" arch=('x86_64') -url="https://github.com/rhysd/git-brws" +url='https://rhysd.github.io/git-brws/' +_url_source='https://github.com/rhysd/git-brws' license=('MIT') depends=('openssl') -conflicts=('git-brws-git') makedepends=('cargo') -source=("$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +source=("${pkgname}-${pkgver}.tar.gz::${_url_source}/archive/v${pkgver}.tar.gz") sha256sums=('3a4bbf93f0b16562260ca66c2b60c655d5bfc690d0229d11757be76d95cb81c5') build() { - cd "$pkgname-$pkgver" - cargo build --release --locked + cd "${pkgname}-${pkgver}" + cargo build \ + --all-features \ + --locked \ + --release \ + --target-dir='target' } package() { - cd "$srcdir/$pkgname-$pkgver" - - install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" - install -Dm644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1" - install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "${pkgname}-${pkgver}" + install -Dvm755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin" + install -Dvm644 "${pkgname}.1" -t "${pkgdir}/usr/share/man/man1" + install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dvm644 'LICENSE.txt' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } + +# vim: ts=2 sw=2 et: |