PKGBUILDs/aur/samen-git/PKGBUILD

43 lines
972 B
Bash
Raw Normal View History

# Maintainer: Kai Uwe Jesussek <kajot@gmx.net>
plugrel=1
pkgname=samen-git
2011-06-16 11:20:46 +00:00
pkgver=20110616
pkgrel=1
pkgdesc="samen is a ultra small wpa_supplicant (wpa_cli) action handler."
arch=('arm' 'i686' 'x86_64')
license=('GPL')
provides=('samen')
2011-06-16 11:20:46 +00:00
makedepends=('git' 'cmake')
depends=('wpa_supplicant')
_gitroot=("git://github.com/kimperator/Samen.git")
_gitname=("Samen")
build() {
cd ${srcdir}
## Git checkout
if [ -d ${srcdir}/${_gitname} ] ; then
msg "Git checkout: Updating existing tree"
cd ${_gitname} && git pull origin
msg "Git checkout: Tree has been updated"
else
msg "Git checkout: Retrieving sources"
2011-06-02 11:05:22 +00:00
git clone --depth 1 ${_gitroot}
fi
msg "Checkout completed"
## Build
rm -rf ${srcdir}/${_gitname}-build
cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
cd ${srcdir}/${_gitname}-build
2011-06-16 11:20:46 +00:00
mkdir build
cd build
cmake ..
make DESTDIR=${pkgdir} install
cp -r ../additions/arch/etc ${pkgdir}
}
package() {
true
}