1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00
rofi/PKGBUILD

45 lines
1.1 KiB
Text
Raw Normal View History

2012-06-29 13:29:23 -04:00
# Contributor: Sean Pringle <sean.pringle@gmail.com>
# Contributor: Dave Davenport
2012-06-29 13:29:23 -04:00
pkgname=simpleswitcher-git
pkgver=20120625
pkgrel=1
pkgdesc="simple EWMH window switcher"
arch=('i686' 'x86_64')
url="http://github.com/DaveDavenport/simpleswitcher"
2012-06-29 13:29:23 -04:00
license=('MIT')
depends=('libx11' 'libxft' 'freetype2')
makedepends=('git')
provides=('simpleswitcher')
_gitroot="git://github.com/DaveDavenport/simpleswitcher.git"
2012-06-29 13:29:23 -04:00
_gitname="simpleswitcher"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot --depth=1
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
make
}
package() {
cd "$srcdir/$_gitname-build"
install -Dm 755 $_gitname "$pkgdir/usr/bin/simpleswitcher"
gzip -c "$_gitname.1" > "$_gitname.1.gz"
install -Dm644 "$_gitname.1.gz" "$pkgdir/usr/share/man/man1/$_gitname.1.gz"
}