PKGBUILD 1.2 KB

123456789101112131415161718192021222324252627282930
  1. # Maintainer (Arch): Gaetan Bisson <bisson@archlinux.org>
  2. # Contributor (Arch): Judd Vinet <jvinet@zeroflux.org>
  3. # Maintainer: André Silva <emulatorman@hyperbola.info>
  4. # Contributor: Márcio Silva <coadde@hyperbola.info>
  5. pkgname=ifenslave
  6. pkgver=1.1.0
  7. pkgrel=10
  8. pkgdesc='Utility for bonding ethernet interfaces'
  9. url='https://wiki.linuxfoundation.org/networking/bonding'
  10. arch=('i686' 'x86_64')
  11. license=('GPL-2')
  12. depends=('glibc')
  13. makedepends=('linux-libre-lts-api-headers')
  14. source=(ifenslave.c::'https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/networking/ifenslave.c;h=450faacc'
  15. 'COPYING')
  16. sha512sums=('4cd60146f4019f74991978ace42059c020837ea6e9aeda245ebabc7995d95e87a34f5800e6be2b3bfda1b261d26770e9514ba5bd32e43d5a1eadc5c36f35655e'
  17. 'aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957')
  18. build() {
  19. cd "${srcdir}"
  20. gcc -Wall -Wstrict-prototypes ${CFLAGS} ${LDFLAGS} ifenslave.c -o ifenslave
  21. }
  22. package() {
  23. cd "${srcdir}"
  24. install -Dm755 ifenslave "${pkgdir}"/sbin/ifenslave
  25. install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
  26. }