Created
August 30, 2012 05:31
-
-
Save chattama/3522806 to your computer and use it in GitHub Desktop.
archlinuxarm raspi-config
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
yaourt -S core/popt | |
yaourt -S extra/slang | |
yaourt -S extra/tcl | |
yaourt -S extra/python2 | |
yaourt -S aur/newt | |
edit PKGBUILD | |
============================================================================= | |
# Maintainer: TDY <[email protected]> | |
pkgname=newt | |
pkgver=0.52.12 | |
pkgrel=1 | |
pkgdesc="A programming library for color text mode, widget based user interfaces" | |
arch=(arm) | |
url="https://fedorahosted.org/newt/" | |
license=('GPL') | |
depends=('popt' 'slang' 'tcl') | |
makedepends=('python2') | |
source=(https://fedorahosted.org/releases/n/e/$pkgname/$pkgname-$pkgver.tar.gz) | |
md5sums=('51b04128d9e1bf000fa769c417b74486') | |
build() { | |
cd "$srcdir/$pkgname-$pkgver" | |
sed -i Makefile.in \ | |
-e 's,-ltcl8.4,-ltcl8.5,g' \ | |
-e 's,$(SHCFLAGS) -o,$(LDFLAGS) &,g' \ | |
-e 's,-g -o,$(CFLAGS) $(LDFLAGS) -o,g' \ | |
-e 's,-shared -o,$(CFLAGS) $(LDFLAGS) &,g' \ | |
-e 's,instroot,DESTDIR,g' \ | |
-e 's, make , $(MAKE) ,g' | |
sed -i 's,/usr/bin/install,install,' po/Makefile | |
./configure --prefix=/usr --with-gpm-support --with-tcl --enable-nls | |
make PYTHONVERS=python2.7 | |
} | |
package() { | |
cd "$srcdir/$pkgname-$pkgver" | |
make PYTHONVERS=python2.7 DESTDIR="$pkgdir" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment