summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorwillemw122019-02-05 15:56:07 +0100
committerwillemw122019-02-05 15:56:07 +0100
commit0acf4bccf5519f6e3ab19b93b5db882566b376ad (patch)
tree8d92d75f95282f82dc74fa98c20144796b45b81c /PKGBUILD
parent8f9ff2702706e2a10e56f6fe60c5b0d96be9c2ab (diff)
downloadaur-0acf4bccf5519f6e3ab19b93b5db882566b376ad.tar.gz
5.30. Enable qt5 and ncurses builds.
Remove qt4 build and kdelibs dependency. Add "options=(!makeflags)" build option. Remove gtk2 comment.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD106
1 files changed, 42 insertions, 64 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fc63367a805..b93195b483d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,108 +2,86 @@
# Contributor: Sebastian Voecking <voeck@web.de>
pkgbase=mp-5
-#pkgname=(mp-5-nc mp-5-qt4 mp-5-kde4 mp-5-gtk)
-pkgname=(mp-5-qt4 mp-5-gtk)
-pkgver=5.2.15
+pkgname=(mp-5-gtk mp-5-nc mp-5-qt5)
+pkgver=5.30
pkgrel=1
arch=('x86_64')
url="http://www.triptico.com/software/mp.html"
license=('GPL')
-# Note: config.sh auto-detects during the build which libraries are available
-makedepends=('ncurses' 'qt4' 'kdelibs' 'gtk3') # 'gtk2'
+#'mp_doccer' 'perl-grutatxt'
+makedepends=('gtk3' 'ncurses' 'qt5-base')
+options=(!makeflags)
source=(http://triptico.com/download/mp/mp-$pkgver.tar.gz
MinimumProfit.desktop)
-md5sums=('2ee10210028b607883cc1cac3ef1d93e'
+md5sums=('244505cfe62023fe4890492f88cf1298'
'7eae413ded2d6f69fba8347240b8b875')
prepare() {
- #rm -rf mp-5-nc
- #cp -a mp-$pkgver mp-5-nc
-
- rm -rf mp-5-qt4
- cp -a mp-$pkgver mp-5-qt4
+ rm -rf mp-5-gtk
+ cp -a mp-$pkgver mp-5-gtk
- #rm -rf mp-5-kde4
- #cp -a mp-$pkgver mp-5-kde4
+ rm -rf mp-5-nc
+ cp -a mp-$pkgver mp-5-nc
- rm -rf mp-5-gtk
- mv mp-$pkgver mp-5-gtk
+ rm -rf mp-5-qt5
+ cp -a mp-$pkgver mp-5-qt5
}
+# Note: config.sh detects during the build which libraries are available
build() {
- #cd "$srcdir/mp-5-nc"
- #./config.sh --prefix=/usr --without-gtk --without-qt4 --without-kde4
- #make
-
- cd "$srcdir/mp-5-qt4"
- ./config.sh --prefix=/usr --without-gtk
+ cd "$srcdir/mp-5-gtk"
+ ./config.sh --prefix=/usr --without-curses --without-kde4 --without-qt
make
- #cd "$srcdir/mp-5-kde4"
- #./config.sh --prefix=/usr --with-kde4
- #make
+ cd "$srcdir/mp-5-nc"
+ ./config.sh --prefix=/usr --without-gtk --without-kde4 --without-qt
+ make
- cd "$srcdir/mp-5-gtk"
- ./config.sh --prefix=/usr --without-qt4 --without-kde4
+ cd "$srcdir/mp-5-qt5"
+ ./config.sh --prefix=/usr --without-curses --without-gtk --without-kde4 --without-qt4
make
}
-#package_mp-5-nc() {
-# pkgdesc="Text editor for programmers (ncurses front-end)"
-# depends=('ncurses')
-# _pkgname='mp-5'
-# provides=($_pkgname)
-# conflicts=($_pkgname)
-#
-# install -Dm644 MinimumProfit.desktop "$pkgdir/usr/share/applications/MinimumProfit.desktop"
-#
-# cd mp-5-nc
-# install -Dm644 mp.png "$pkgdir/usr/share/pixmaps/mp.png"
-# install -dm755 "$pkgdir/usr/bin"
-# make DESTDIR="$pkgdir" install
-#}
-
-package_mp-5-qt4() {
- pkgdesc="Text editor for programmers (QT4 front-end)"
- depends=('qt4')
+package_mp-5-gtk() {
+ pkgdesc="Text editor for programmers (GTK front-end)"
+ depends=('gtk3')
_pkgname='mp-5'
provides=($_pkgname)
conflicts=($_pkgname)
install -Dm644 MinimumProfit.desktop "$pkgdir/usr/share/applications/MinimumProfit.desktop"
- cd mp-5-qt4
+ cd mp-5-gtk
install -Dm644 mp.png "$pkgdir/usr/share/pixmaps/mp.png"
install -dm755 "$pkgdir/usr/bin"
make DESTDIR="$pkgdir" install
}
-#package_mp-5-kde4() {
-# pkgdesc="Text editor for programmers (KDE4 front-end)"
-# depends=('kdelibs')
-# _pkgname='mp-5'
-# provides=($_pkgname)
-# conflicts=($_pkgname)
-#
-# install -Dm644 MinimumProfit.desktop "$pkgdir/usr/share/applications/MinimumProfit.desktop"
-#
-# cd mp-5-kde4
-# install -Dm644 mp.png "$pkgdir/usr/share/pixmaps/mp.png"
-# install -dm755 "$pkgdir/usr/bin"
-# make DESTDIR="$pkgdir" install
-#}
+package_mp-5-nc() {
+ pkgdesc="Text editor for programmers (ncurses front-end)"
+ depends=('ncurses')
+ _pkgname='mp-5'
+ provides=($_pkgname)
+ conflicts=($_pkgname)
-package_mp-5-gtk() {
- pkgdesc="Text editor for programmers (GTK front-end)"
- #depends=('gtk2')
- depends=('gtk3')
+ install -Dm644 MinimumProfit.desktop "$pkgdir/usr/share/applications/MinimumProfit.desktop"
+
+ cd mp-5-nc
+ install -Dm644 mp.png "$pkgdir/usr/share/pixmaps/mp.png"
+ install -dm755 "$pkgdir/usr/bin"
+ make DESTDIR="$pkgdir" install
+}
+
+package_mp-5-qt5() {
+ pkgdesc="Text editor for programmers (QT5 front-end)"
+ depends=('qt5')
_pkgname='mp-5'
provides=($_pkgname)
conflicts=($_pkgname)
install -Dm644 MinimumProfit.desktop "$pkgdir/usr/share/applications/MinimumProfit.desktop"
- cd mp-5-gtk
+ cd mp-5-qt5
install -Dm644 mp.png "$pkgdir/usr/share/pixmaps/mp.png"
install -dm755 "$pkgdir/usr/bin"
make DESTDIR="$pkgdir" install