Skip to content

Instantly share code, notes, and snippets.

@stef204 stef204/PKGBUILD Secret
Created Mar 20, 2015

Embed
What would you like to do?
mp_5.2.9
# Maintainer: speps <speps at aur dot archlinux dot org>
# Contributor: stef204 < base64 -d c3RlZjIwNEB5YW5kZXguY29tCg== >
pkgname=mp
pkgver=5.2.9
pkgrel=1
pkgdesc="A text editor for programmers."
arch=(i686 x86_64)
url="http://triptico.com/software/mp.html"
license=('GPL')
makedepends=('gtk3' 'qt4')
optdepends=('gtk3: gtk frontend'
'qt4: qt frontend')
options=('!emptydirs')
source=(http://triptico.com/download/mp/mp-$pkgver.tar.gz)
sha256sums=('a30403f4b0c07905733168e914d488f48fb449bb95f67a5254d9ca9ecb6b795d')
prepare() {
sed -i "s|ncursesw/||" ${srcdir}/mp-$pkgver/{config.sh,mpv_curses.c}
}
build() {
cd "$srcdir/mp-$pkgver"
# curses
./config.sh --prefix=/usr \
--without-gtk \
--without-qt4
make
cp mp-5 mp-curses
make clean
# gtk
./config.sh --prefix=/usr \
--without-curses \
--without-qt4
make
cp mp-5 mp-gtk
make clean
# qt
./config.sh --prefix=/usr \
--without-curses \
--without-gtk
make
}
package() {
cd "$srcdir/mp-$pkgver"
install -d "$pkgdir/usr/bin"
make DESTDIR="$pkgdir/" install
mv "$pkgdir/usr/bin/mp-5" "$pkgdir/usr/bin/mp-qt"
install -Dm755 mp-{curses,gtk} "$pkgdir/usr/bin"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.