Skip to content

Instantly share code, notes, and snippets.

@Stebalien
Created February 17, 2013 17:08
Show Gist options
  • Save Stebalien/4972313 to your computer and use it in GitHub Desktop.
Save Stebalien/4972313 to your computer and use it in GitHub Desktop.
Cleaned linotify-git PKGBUILD
# Contributor: Will Chappell <mr.chapendi@gmail.com>
# Maintainer: Zsolt Udvari <udvzsolt gmail com>
pkgname=linotify-git
pkgver=20130217
pkgrel=1
pkgdesc="lua bindings to inotify"
arch=('i686' 'x86_64')
url="http://github.com/hoelzro/linotify"
license=('MIT')
depends=(lua)
makedepends=('git')
provides=(linotify)
conflicts=(linotify)
_gitroot="git://github.com/hoelzro/linotify.git"
_gitname="linotify"
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
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
make LUAPKG_CMD=lua
}
package() {
cd "$srcdir/$_gitname-build"
make install LUAPKG_CMD=lua DESTDIR="$pkgdir"
install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/${pkgname}/COPYRIGHT"
install -Dm644 README.md "$pkgdir/usr/share/doc/${pkgname}/README.md"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment