Gamin (File Alteration Monitor) - Python 3 migration
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.

56 lines
2.5 KiB

4 years ago
  1. # Maintainer: Pekka Helenius <fincer89@hotmail.com>
  2. # Contributor: Abhishek Dasgupta <abhidg@gmail.com>
  3. # Contributor: Pulphix <crimea.v@libero.it>
  4. pkgname=gamin
  5. pkgver=0.1.10
  6. pkgrel=10
  7. pkgdesc='File and directory monitoring system defined to be a subset of the FAM (File Alteration Monitor)'
  8. url='http://www.gnome.org/~veillard/gamin'
  9. license=('GPL')
  10. arch=('any')
  11. depends=('glib2')
  12. makedepends=('python')
  13. optdepends=('python: for the python module')
  14. provides=('fam')
  15. conflicts=('fam')
  16. source=("$url/sources/${pkgname}-${pkgver}.tar.gz"
  17. 'fix-deprecated-const.patch'
  18. '18_gam_server_deadlocks.patch'
  19. '0001-Poll-files-on-nfs4.patch'
  20. 'patch_python3.patch'
  21. )
  22. sha512sums=('21bfe6fcf8fb3117cd5a08c8ce3b8d0d1dd23e478e60a95b76c20d02cc29b050dde086578d81037990484ff891c3e104d2cbbf3d294b4a79346b14a0cae075bb'
  23. 'c4c10bee70c7231db395cbfe5bdf513ade6be599a11a9d35888ddfaca42d619fe2b5e87c2b2bab469ea98ba718bc01711252313ba5f53c392379b669f5b2902b'
  24. 'ae2d3f3cd16e2da05836cbb2f21527896db5d5067ef4b120e943693234a685527eff528955ed80120265ca70e04a88cc28413cc34311d6faa068c620339fad38'
  25. 'dcb23fd68e106a1b578235ef0b01b49773908ca6ded706610103f880f77a2aa0b0403cb720b9c6b062bac71e9d66cd2288b489c558839fc23295b18635bf399f'
  26. '7368286df3b2db9df02a585150bef5b9aa7f0b80cc913a7867739ccc1abf3f45674515c02fad9423607b9b7266a61884f01e43b89d29b16afbbf7524e75f21e7'
  27. '323fa143947b7df0b746cac980f9a610f364883c94fdc3800f3cee2e3bfa6e5945cbff0a865f8a3349441127cc450a7be04be2073772fb3c6af227637542fa43'
  28. '2cd2c49b588147f93753c6bb46afa9438cf0f63ff1a61761ae09b534658aceb0fd5f0eab9c7037bc3c890e63cba9407499c5b9c715a7568f2ec94f4565a6e40f'
  29. '596efc8a9bb98bbeacb11a1995f54146fb68fefae28fa28db0728c47d61f10009b8aa0d91c54a4c73e5c6478b8d049c942a00131cbb5342a01f83c2dda103858'
  30. 'e5575ac8d5908926d5c7d26076b14980b328cd4caa695f8c2cdb21999dd4868da9c90d8d9c469bf1fe316ac752c2637b0525a79f9b9188778c82f6f96beecaac')
  31. prepare() {
  32. cd $pkgname-$pkgver
  33. # https://bugs.archlinux.org/task/33642
  34. patch -Np1 -i ../18_gam_server_deadlocks.patch
  35. patch -Np1 -i ../fix-deprecated-const.patch
  36. patch -Np1 -i ../0001-Poll-files-on-nfs4.patch
  37. patch -Np1 -i ../patch_python3.patch
  38. }
  39. build() {
  40. cd $pkgname-$pkgver
  41. ./configure --prefix=/usr --disable-static --with-threads \
  42. --disable-debug-api --disable-debug --libexecdir=/usr/lib/gamin \
  43. --with-python=/usr/bin/python
  44. make
  45. }
  46. package() {
  47. cd $pkgname-$pkgver
  48. make DESTDIR="$pkgdir" install
  49. }