Skip to content

Instantly share code, notes, and snippets.

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