Created
October 13, 2011 18:43
-
-
Save Kermit/1285085 to your computer and use it in GitHub Desktop.
RazorQt PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=( | |
'razorqt-devel' | |
'razorqt-libs' | |
'razorqt-appswitcher' | |
'razorqt-desktop' | |
'razorqt-panel' | |
'razorqt-runner' | |
'razorqt-session' | |
'razorqt-config' | |
'razorqt-data' | |
'razorqt-libqtxdg' | |
) | |
pkgver=20111013 | |
pkgrel=1 | |
pkgdesc="A DE (without wm), at one time based on Anitco." | |
url="http://razor-qt.sf.net" | |
arch=('i686' 'x86_64') | |
license="GPL" | |
depends=('qt') | |
optdepends=('openbox: best supported WM' | |
'eggwm: also well supported WM' | |
'-wm: any WM should work, really') | |
makedepends=('git' 'cmake') | |
source=() | |
md5sums=() | |
_gitroot="git://github.com/Razor-qt/razor-qt.git" | |
_gitname="razor-qt" | |
build() { | |
cd "$srcdir" | |
msg "Connecting to github..." | |
if [ -d "$srcdir"/${_gitname} ] ; then | |
cd ${_gitname} && git pull origin | |
msg "The local files are updated." | |
else | |
git clone --depth 1 ${_gitroot} | |
fi | |
msg "GIT checkout done or server timeout" | |
msg "Starting make..." | |
mkdir "$srcdir/BUILD" | |
cd "$srcdir/BUILD" | |
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release $srcdir/$_gitname | |
make -j5 | |
} | |
package_razorqt-appswitcher() { | |
cd "$srcdir/BUILD/razorqt-appswitcher" | |
make DESTDIR="$pkgdir/" install | |
} | |
package_razorqt-desktop() { | |
cd "$srcdir/BUILD/razorqt-desktop" | |
make DESTDIR="$pkgdir/" install | |
} | |
package_razorqt-panel() { | |
cd "$srcdir/BUILD/razorqt-panel" | |
make DESTDIR="$pkgdir/" install | |
} | |
package_razorqt-runner() { | |
cd "$srcdir/BUILD/razorqt-runner" | |
make DESTDIR="$pkgdir/" install | |
} | |
package_razorqt-config() { | |
cd "$srcdir/BUILD/razorqt-config" | |
make DESTDIR="$pkgdir/" install | |
} | |
package_razorqt-data() { | |
cd "$srcdir/BUILD/razorqt-resources" | |
make DESTDIR="$pkgdir/" install | |
} | |
package_razorqt-libqtxdg() { | |
cd "$srcdir/BUILD/librazorqt/qtxdg" | |
make DESTDIR="$pkgdir/" install | |
rm -rf "$srcdir/BUILD/librazorqt/qtxdg" | |
} | |
package_razorqt-devel() { | |
cd "$srcdir/BUILD/razorqt-x11info" | |
make DESTDIR="$pkgdir/" install | |
} | |
package_razorqt-libs() { | |
cd "$srcdir/BUILD/librazorqt" | |
make DESTDIR="$pkgdir/" install | |
cd "$srcdir/BUILD/librazorqt/razormount" | |
make DESTDIR="$pkgdir/" install | |
} | |
package_razorqt-session() { | |
cd "$srcdir/BUILD/razorqt-session" | |
make DESTDIR="$pkgdir/" install | |
} |
Line 48 -> I know that. That was dirty hack.
Names -> ok. I think it's not a problem.
Splitting -> I can make two version of PKGBUILDs. One splitted and one "all-in-one". I think we should have splitted RazorQt because not everyone want to use our "Application Switcher" or "Runner".
I'll try to continue work on this PKGBUILD ASAP.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In pkgname section, splitted packages usually have the names of the packages on the same line
Line 48, its not suggested to do "make -j*" invocations, makeflags are configured via /etc/makepkg.conf. With just one "make" invocation should be enough.
One more thing, i guess thats the way you see it, but there shouldnt be splitted packages, at least thats my opinion for this project... Splitted packages are usually for different parts, libraries and binaries on the same project (see mesa PKGBUILD, all those libraries and binaries arent really related, and can be replaced by other libs)