Skip to content

Instantly share code, notes, and snippets.

@Kermit
Created October 13, 2011 18:43
Show Gist options
  • Save Kermit/1285085 to your computer and use it in GitHub Desktop.
Save Kermit/1285085 to your computer and use it in GitHub Desktop.
RazorQt PKGBUILD
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
}
@Kermit
Copy link
Author

Kermit commented Nov 5, 2011

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