Skip to content

Instantly share code, notes, and snippets.

@weynhamz
Last active December 26, 2015 07:19
Show Gist options
  • Save weynhamz/7114249 to your computer and use it in GitHub Desktop.
Save weynhamz/7114249 to your computer and use it in GitHub Desktop.
PKGBUILD of dotploy-git
# Maintainer: Techlive Zheng <techlivezheng at gmail dot com>
# Contributor: Maxim Chervonny <[email protected]>
_pkgname=dotploy
pkgname=dotploy-git
pkgdesc="A bash only script to deploy $HOME dot files acrossing different hosts"
pkgver=0.3.3.r0.ge947c85
pkgrel=1
url="https://github.com/techlivezheng/dotploy"
arch=('any')
license=('GPL')
source=('git://github.com/techlivezheng/dotploy.git')
depends=('bash')
makedepends=('git' 'perl')
provides=('dotploy')
conflicts=('dotploy')
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long | sed -E 's/^dotploy-v//;s/([^-]*-g)/r\1/;s|-|.|g'
}
build() {
cd "${_pkgname}"
make standalone
sed -i 's/dotploy\.sh/dotploy/g' dotploy
}
check() {
cd "${_pkgname}"
sed -i 's/dotploy\.sh/dotploy/g' tests/test-dotploy.sh
make test
}
package() {
cd "${_pkgname}"
install -D -m 0755 dotploy "${pkgdir}"/usr/bin/dotploy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment