Guest User

PKGBUILD

a guest
Aug 24th, 2020
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. # Maintainer: Stephanie Hobbs (RX14) <steph@rx14.co.uk>
  2.  
  3. pkgname=rclonesync-git
  4. pkgver=3.0.r55
  5. pkgrel=1
  6. pkgdesc="A Bidirectional Cloud Sync Utility using rclone"
  7. arch=("any")
  8. url="https://github.com/cjnaz/rclonesync-V2"
  9. license=("MIT")
  10. depends=("python" "rclone")
  11. makedepends=("git")
  12. source=("rclonesync::git+${url}")
  13. sha256sums=('SKIP')
  14.            
  15. pkgver() {
  16.     cd rclonesync
  17.  
  18.     local project_version="$(python rclonesync -V | sed -E 's|^rclonesync V(.+) (.+)$|\1|')"
  19.     printf "%s.r%s" "$project_version" "$(git rev-list --count HEAD)"
  20. }
  21.  
  22. package() {
  23.     cd rclonesync
  24.  
  25.     install -m 0755 -d "$pkgdir"/usr/bin
  26.     install -m 0755 rclonesync "$pkgdir"/usr/bin/rclonesync
  27. }
Add Comment
Please, Sign In to add comment