Created
February 17, 2013 17:08
-
-
Save Stebalien/4972313 to your computer and use it in GitHub Desktop.
Cleaned linotify-git PKGBUILD
This file contains hidden or 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
# Contributor: Will Chappell <[email protected]> | |
# 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