diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-05-01 10:35:06 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-05-01 10:35:06 -0500 |
commit | 212c0289204604ed0c10446cfd431b2c5562c82a (patch) | |
tree | 6dc13a43514d6e56ac558b7f4b39c19e13491ea5 /pcr/startupmanager/PKGBUILD | |
parent | 85d52632b8388ccd17281307f59b2d8a9e3b71d7 (diff) | |
download | abslibre-212c0289204604ed0c10446cfd431b2c5562c82a.tar.gz abslibre-212c0289204604ed0c10446cfd431b2c5562c82a.tar.bz2 abslibre-212c0289204604ed0c10446cfd431b2c5562c82a.zip |
startupmanager-1.9.13-6: rebuild
Diffstat (limited to 'pcr/startupmanager/PKGBUILD')
-rw-r--r-- | pcr/startupmanager/PKGBUILD | 69 |
1 files changed, 38 insertions, 31 deletions
diff --git a/pcr/startupmanager/PKGBUILD b/pcr/startupmanager/PKGBUILD index 1a4454d84..1d877ba14 100644 --- a/pcr/startupmanager/PKGBUILD +++ b/pcr/startupmanager/PKGBUILD @@ -2,41 +2,48 @@ # Contributor (Arch): Chris Giles <Chris.G.27 (at) Gmail.com> # Contributor (Arch): fernando < arch at liquuid dot net> # Contributor (Arch): Juan Pablo González Tognarelli <lord_jotape@yahoo.com.ar> -# Maintainer : Parabola GNU / Linux-libre Aurélien Desbrières <aurelien@cwb.io> +# Maintainer : Parabola GNU / Linux-libre Aurélien Desbrières <aurelien@cwb.io> pkgname=startupmanager pkgver=1.9.13 -pkgrel=4 -pkgdesc="GUI app for changing the settings of GRUB, GRUB2, Usplash and Splashy" -arch=("any") -url="http://sourceforge.net/projects/startup-manager/" -license=("MIT") -depends=("gnome-python" "imagemagick" "yelp" "python2" "xorg-xrandr>=1.3.3") -makedepends=("intltool" "setconf") +pkgrel=6 +pkgdesc='GUI app for changing the settings of GRUB, GRUB2, Usplash and Splashy' +arch=('any') +url='http://sourceforge.net/projects/startup-manager/' +license=('MIT') +depends=('gnome-python' 'imagemagick' 'yelp' 'python2' 'xorg-xrandr') +makedepends=('intltool' 'setconf') source=("http://downloads.sourceforge.net/sourceforge/startup-manager/${pkgname}_${pkgver}.tar.gz") -sha1sums=('b82a65ac6ec488ca7fe16fd3ea277cd15a3627c6') - -build() { - cd "$srcdir/$pkgname-$pkgver" - - # Make the startup script use python2 - echo "#!/usr/bin/env python2" > pyfix - tail -n +2 startupmanager >> pyfix - cat pyfix > startupmanager - - # Change the grub2 detection to be Arch-friendly - setconf bootconfig/grub.py self.update_grub_command \'/sbin/grub-mkconfig\' - setconf bootconfig/grub.py self.grub_install_command \'/sbin/grub-install\' - - # TIP: bug-workaround: If you have problems with resolution-detection when starting - # startupmanager, try changing line 159 in /usr/lib/python2.7/site-packages/bootconfig/utils.py to: - # - # try: - # return matches.group(1) + 'x' + matches.group(2) - # except: - # return "640x480" - # - # Where "640x480" is just an example (but should make it work) +sha256sums=('f51f8a64080759e3d3af58cfbae1769b8e3db8c65a2d9bd2ba80a7e6e7489a2d') + +# +# TIP: bug-workaround: If you have problems with resolution-detection when starting +# startupmanager, try changing line 159 in /usr/lib/python2.7/site-packages/bootconfig/utils.py to: +# +# try: +# return matches.group(1) + 'x' + matches.group(2) +# except: +# return "640x480" +# +# Where "640x480" is just an example (but should make it work) +# + +prepare() { + cd "$pkgname-$pkgver" + + # Help the startup script find python2 + sed -i 's:env python:env python2:' startupmanager + + # /usr/bin instead of /usr/sbin + sed -i 's:sbin:bin:' setup.py + + # Set the GRUB2 related paths correctly + setconf bootconfig/grub.py self.update_grub_command \'/usr/bin/grub-mkconfig\' + setconf bootconfig/grub.py self.grub_install_command \'/usr/bin/grub-install\' +} + +package() { + cd "$pkgname-$pkgver" python2 setup.py install --prefix="$pkgdir/usr/" install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" |