Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is an example PKGBUILD file. Use this as a start to creating your own,
- # and remove these comments. For more information, see 'man PKGBUILD'.
- # NOTE: Please fill out the license field for your package! If it is unknown,
- # then please put 'unknown'.
- # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
- # for more information on packaging from GIT sources.
- # Contributor: Your Name <youremail@domain.com>
- pkgname=NAME-git
- pkgver=VERSION
- pkgrel=1
- pkgdesc=""
- arch=()
- url=""
- license=('GPL')
- groups=()
- depends=()
- makedepends=('git')
- provides=()
- conflicts=()
- replaces=()
- backup=()
- options=()
- install=
- source=($pkgname-$pkgver.tar.gz)
- noextract=()
- md5sums=() #generate with 'makepkg -g'
- _gitroot="GITURL"
- _gitname="MODENAME"
- _gitbranch="master"
- 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} ${_gitname}
- 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"
- git checkout --track -b ${_gitbranch} origin/${_gitbranch}
- #
- # BUILD HERE
- #
- ./autogen.sh
- ./configure --prefix=/usr
- make || return 1
- make DESTDIR="$pkgdir/" install
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement