summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorwillemw122015-07-10 08:13:01 +0200
committerwillemw122015-07-10 08:13:01 +0200
commitf075271cdb5f07536dfab9dd46029d6b4b42cf1c (patch)
treed2c37838d44a053b098f4b82d8ee614290fb408e /PKGBUILD
parentee32d0d915f0d9df58cb509c3d430b8188010a04 (diff)
downloadaur-f075271cdb5f07536dfab9dd46029d6b4b42cf1c.tar.gz
Split package mp-5-qt4 mp-5-kde4 mp-5-gtk
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD101
1 files changed, 91 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index eb922c7eb2c..39e0b3ebe81 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,112 @@
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: Sebastian Voecking <voeck@web.de>
-pkgname=mp-5
+pkgbase=mp-5
+#pkgname=(mp-5-nc mp-5-qt4 mp-5-kde4 mp-5-gtk)
+pkgname=(mp-5-qt4 mp-5-kde4 mp-5-gtk)
pkgver=5.2.10
-pkgrel=1
-pkgdesc="Text editor for programmers (KDE front-end)"
+pkgrel=2
arch=('i686' 'x86_64')
+# Note: config.sh auto-detects during the build which libraries are available
+#makedepends=('ncurses' 'qt4' 'kdelibs' 'gtk3') # 'gtk2'
+makedepends=('ncurses' 'qt4' 'kdelibs' 'gtk3') # 'gtk2'
url="http://www.triptico.com/software/mp.html"
license=('GPL')
-depends=('kdelibs')
source=(http://triptico.com/download/mp/mp-$pkgver.tar.gz
MinimumProfit.desktop)
md5sums=('16c425264e2728679ab5975f8e582acb'
'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-kde4
+ cp -a mp-$pkgver mp-5-kde4
+
+ rm -rf mp-5-gtk
+ mv mp-$pkgver mp-5-gtk
+}
+
build() {
- cd mp-$pkgver
- ./config.sh --prefix=/usr
+ #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
make
+
+ cd "$srcdir/mp-5-kde4"
+ ./config.sh --prefix=/usr --with-kde4
+ make
+
+ cd "$srcdir/mp-5-gtk"
+ ./config.sh --prefix=/usr --without-qt4 --without-kde4
+ 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')
+ _pkgname='mp-5'
+ provides=($_pkgname)
+ conflicts=($_pkgname)
+
+ install -Dm644 MinimumProfit.desktop "$pkgdir/usr/share/applications/MinimumProfit.desktop"
+
+ cd mp-5-qt4
+ 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() {
+package_mp-5-gtk() {
+ pkgdesc="Text editor for programmers (GTK front-end)"
+ #depends=('gtk2')
+ depends=('gtk3')
+ _pkgname='mp-5'
+ provides=($_pkgname)
+ conflicts=($_pkgname)
+
install -Dm644 MinimumProfit.desktop "$pkgdir/usr/share/applications/MinimumProfit.desktop"
- cd mp-$pkgver
- install -D -m644 mp.png "$pkgdir/usr/share/pixmaps/mp.png"
- install -d -m755 "$pkgdir/usr/bin"
+ cd mp-5-gtk
+ install -Dm644 mp.png "$pkgdir/usr/share/pixmaps/mp.png"
+ install -dm755 "$pkgdir/usr/bin"
make DESTDIR="$pkgdir" install
}