aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lumina-desktop/lumina-desktop.pro6
-rwxr-xr-xmkport.sh66
-rw-r--r--port-files/pkg-plist1
3 files changed, 71 insertions, 2 deletions
diff --git a/lumina-desktop/lumina-desktop.pro b/lumina-desktop/lumina-desktop.pro
index fcec79f8..e3a2001e 100644
--- a/lumina-desktop/lumina-desktop.pro
+++ b/lumina-desktop/lumina-desktop.pro
@@ -4,6 +4,10 @@ QT += core gui network phonon
TARGET = Lumina-DE
target.path = /usr/local/bin
+LIBS += -L../libLumina -lLuminaUtils -lXdamage -lX11
+LIBPATH = ../libLumina
+DEPENDPATH += ../libLumina
+
TEMPLATE = app
@@ -102,8 +106,6 @@ defaults.files = defaults/desktop-background.jpg \
audiofiles/Login.ogg
defaults.path = /usr/local/share/Lumina-DE/
-LIBS = -L../libLumina -L/usr/local/lib -L/usr/lib -lLuminaUtils -lXdamage -lX11
-
TRANSLATIONS = i18n/lumina-desktop_af.ts \
i18n/lumina-desktop_ar.ts \
i18n/lumina-desktop_az.ts \
diff --git a/mkport.sh b/mkport.sh
new file mode 100755
index 00000000..6186c708
--- /dev/null
+++ b/mkport.sh
@@ -0,0 +1,66 @@
+#!/bin/sh
+# Helper script which will create the port / distfiles
+# from a checked out git repo
+
+# Set the distfile URL we will fetch from
+DURL="http://www.pcbsd.org/~kris/software/"
+
+get_last_rev_git()
+{
+ oPWD=`pwd`
+ cd "${1}"
+ rev=0
+ rev=`git log -n 1 --date=raw | grep 'Date:' | awk '{print $2}'`
+ cd $oPWD
+ if [ $rev -ne 0 ] ; then
+ echo "$rev"
+ return 0
+ fi
+ return 1
+}
+
+if [ -z "$1" ] ; then
+ echo "Usage: ./mkports.sh <outdir>"
+ exit 1
+fi
+
+if [ ! -d "${1}" ] ; then
+ echo "Invalid directory: $1"
+ exit 1
+fi
+
+portsdir="${1}"
+distdir="${1}/distfiles"
+if [ ! -d "$portsdir" ] ; then
+ mkdir ${portsdir}
+fi
+if [ ! -d "$portsdir/sysutils" ] ; then
+ mkdir ${portsdir}/sysutils
+fi
+if [ ! -d "$distdir" ] ; then
+ mkdir ${distdir}
+fi
+
+REV=`get_last_rev_git "."`
+
+# Make the dist files
+rm ${distdir}/lumina*.tar.bz2 2>/dev/null
+echo "Creating lumina dist file for version: $REV"
+cd ..
+tar cvjf ${distdir}/lumina-${REV}.tar.bz2 --exclude .git lumina 2>/dev/null
+cd lumina
+
+# Copy ports files
+rm -rf ${portsdir}/x11/lumina 2>/dev/null
+cp -r port-files ${portsdir}/x11/lumina
+
+# Set the version numbers
+sed -i '' "s|CHGVERSION|${REV}|g" ${portsdir}/x11/lumina/Makefile
+
+# Set the mirror to use
+sed -i '' "s|http://www.pcbsd.org/~kris/software/|${DURL}|g" ${portsdir}/x11/lumina/Makefile
+
+# Create the makesums / distinfo file
+cd ${distdir}
+sha256 lumina-${REV}.tar.bz2 > ${portsdir}/x11/lumina/distinfo
+echo "SIZE (lumina-${REV}.tar.bz2) = `stat -f \"%z\" lumina-${REV}.tar.bz2`" >> ${portsdir}/x11/lumina/distinfo
diff --git a/port-files/pkg-plist b/port-files/pkg-plist
index e203110d..caf4585d 100644
--- a/port-files/pkg-plist
+++ b/port-files/pkg-plist
@@ -339,3 +339,4 @@ share/Lumina-DE/i18n/lumina-screenshot_zu.qm
@dirrm share/Lumina-DE/i18n
@dirrmtry share/Lumina-DE
@dirrmtry share/wallpapers/Lumina-DE
+@dirrmtry share/xsession
bgstack15