Skip to content

Instantly share code, notes, and snippets.

@chattama
Created August 30, 2012 05:31
Show Gist options
  • Save chattama/3522806 to your computer and use it in GitHub Desktop.
Save chattama/3522806 to your computer and use it in GitHub Desktop.
archlinuxarm raspi-config
yaourt -S core/popt
yaourt -S extra/slang
yaourt -S extra/tcl
yaourt -S extra/python2
yaourt -S aur/newt
edit PKGBUILD
=============================================================================
# Maintainer: TDY <tdy@gmx.com>
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