Created
August 31, 2015 11:36
-
-
Save spacepluk/cb2742006c96f380505a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index e48d714..3222fbc 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -23,6 +23,9 @@ depends=('desktop-file-utils' | |
'libpng12' | |
'libxtst' | |
'monodevelop') | |
+makedepends=('elinks' | |
+ 'sed' | |
+ 'xmlint') | |
optdepends=('ffmpeg: for WebGL exporting' | |
'nodejs: for WebGL exporting' | |
'java-runtime: for WebGL exporting' | |
@@ -67,7 +70,9 @@ package() { | |
install -Dm755 -t "${pkgdir}/usr/bin" "${srcdir}/unity-editor" | |
install -Dm755 -t "${pkgdir}/usr/bin" "${srcdir}/monodevelop-unity" | |
- install -Dm644 "${srcdir}/eula" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
+ # EULA | |
+ xmllint --html --xpath "//section[@id='content']" "${srcdir}/eula" 2> /dev/null | elinks -dump | sed '/Quick jump/,$d' > "${srcdir}/LICENSE" | |
+ install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
} | |
# vim:set sw=2 sts=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment