[arch-commits] Commit in mldonkey/trunk (PKGBUILD mldonkey.install)
Anatol Pomozov
anatolik at archlinux.org
Thu Apr 2 17:22:32 UTC 2015
Date: Thursday, April 2, 2015 @ 19:22:32
Author: anatolik
Revision: 130546
upgpkg: mldonkey 3.1.5-3
Create tmp files on package install
Modified:
mldonkey/trunk/PKGBUILD
mldonkey/trunk/mldonkey.install
------------------+
PKGBUILD | 9 ++++-----
mldonkey.install | 4 ++++
2 files changed, 8 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-04-02 15:28:27 UTC (rev 130545)
+++ PKGBUILD 2015-04-02 17:22:32 UTC (rev 130546)
@@ -3,13 +3,13 @@
pkgname=mldonkey
pkgver=3.1.5
-pkgrel=2
+pkgrel=3
pkgdesc='A multi-network P2P client'
arch=(i686 x86_64)
url='http://mldonkey.sourceforge.net/'
license=(GPL)
depends=(file gd miniupnpc libnatpmp)
-makedepends=(lablgtk2 librsvg ocaml)
+makedepends=(gtk2 librsvg) # we build our own version of ocaml and lablgtk2
optdepends=('librsvg: GUI support'
'gtk2: GUI support')
backup=(etc/conf.d/mldonkey)
@@ -29,9 +29,8 @@
build() {
cd mldonkey-$pkgver
- cp ../ocaml-3.12.0.tar.gz patches/
- cp ../lablgtk-2.14.2.tar.gz patches/
- # mldonkey requires the old version of ocaml
+ # mldonkey hardcodes its dependencies to some specific version
+ ln -s "$srcdir"/ocaml-3.12.0.tar.gz "$srcdir"/lablgtk-2.14.2.tar.gz patches/
./configure --prefix=/usr --enable-gui=newgui2 --enable-upnp-natpmp --enable-batch
make
}
Modified: mldonkey.install
===================================================================
--- mldonkey.install 2015-04-02 15:28:27 UTC (rev 130545)
+++ mldonkey.install 2015-04-02 17:22:32 UTC (rev 130546)
@@ -12,6 +12,10 @@
if type -P update-desktop-database &> /dev/null; then
update-desktop-database -q
fi
+
+ if type -P systemd-tmpfiles &> /dev/null; then
+ systemd-tmpfiles --create mldonkey.conf
+ fi
}
post_upgrade() {
More information about the arch-commits
mailing list