WAN IPv4 checker & email notifier for computers behind dynamic IP/DHCP
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.

36 lines
827 B

4 years ago
  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. pkgname=resolvconf-override
  3. pkgver=11.7b292ef
  4. pkgrel=1
  5. pkgdesc='Override resolv.conf through environment variables'
  6. arch=('any')
  7. url="https://github.com/hadess/${pkgname}"
  8. license=('Custom')
  9. depends=('glibc')
  10. makedepends=('git' 'meson' 'ninja')
  11. source=("git+https://github.com/hadess/${pkgname}.git")
  12. sha256sums=('SKIP')
  13. pkgver() {
  14. cd $pkgname
  15. if [[ $(git describe) ]]; then
  16. git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  17. else
  18. echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  19. fi
  20. }
  21. build() {
  22. cd "$pkgname"
  23. sed -i "s/gettext-pseudolocale/${pkgname}/g" meson.build
  24. mkdir build
  25. cd build
  26. meson ..
  27. ninja
  28. }
  29. package() {
  30. cd "$pkgname/build"
  31. install -Dt ${pkgdir}/usr/lib/ -m0644 libresolvconf-override.so
  32. }