You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
845 B

  1. # Maintainer: eta <eta@theta.eu.org>
  2. pkgname=sms-irc-git
  3. pkgver=r138.e62a533
  4. pkgrel=1
  5. pkgdesc="A WhatsApp Web and SMS bridge for internet relay chat (IRC)."
  6. arch=('x86_64')
  7. url="https://git.theta.eu.org/sms-irc.git/about/"
  8. license=('AGPL3')
  9. depends=('postgresql-libs')
  10. makedepends=('rust' 'cargo')
  11. provides=('sms-irc')
  12. conflicts=('sms-irc')
  13. backup=('etc/sms-irc.conf')
  14. optdepends=('inspircd: IRC server to bridge into')
  15. options=()
  16. changelog=
  17. source=('git+https://git.theta.eu.org/sms-irc.git/')
  18. md5sums=('SKIP')
  19. noextract=()
  20. _gitname="sms-irc"
  21. pkgver() {
  22. cd "$srcdir/$_gitname"
  23. printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
  24. }
  25. package() {
  26. cd "$srcdir/$_gitname"
  27. install -Dm644 config.example.toml "$pkgdir/etc/sms-irc.conf"
  28. cargo install --path . --root="$pkgdir/usr" --locked
  29. rm "$pkgdir/usr/.crates.toml"
  30. }