Skip to content

Instantly share code, notes, and snippets.

@Stebalien
Created June 29, 2013 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stebalien/cf49da662d4831c54d9b to your computer and use it in GitHub Desktop.
Save Stebalien/cf49da662d4831c54d9b to your computer and use it in GitHub Desktop.
--- PKGBUILD 2013-04-20 18:58:26.000000000 -0400
+++ PKGBUILD.new 2013-06-28 23:55:50.592923658 -0400
@@ -19,15 +19,13 @@
package() {
cd "$srcdir"/$pkgname
- python setup.py install --root "$pkgdir"
+ python setup.py install --root "$pkgdir" --optimize=1
# Install README file
- install -Dm644 README "$pkgdir"/usr/share/python-netifaces/README
+ install -Dm644 README "$pkgdir"/usr/share/doc/${pkgname}/README
# Install LICENSE file
- install -Dm644 README "$pkgdir"/usr/share/licenses/python-netifaces/LICENSE
-
- find "$pkgdir" -type d -name '.git' -exec rm -r '{}' +
+ install -Dm644 README "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment