1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-16 22:34:10 +00:00
This commit is contained in:
deadc0de6
2018-02-12 22:27:33 +01:00
6 changed files with 105 additions and 41 deletions

View File

@@ -4,6 +4,7 @@
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
[![Coverage Status](https://coveralls.io/repos/github/deadc0de6/dotdrop/badge.svg?branch=master)](https://coveralls.io/github/deadc0de6/dotdrop?branch=master) [![Coverage Status](https://coveralls.io/repos/github/deadc0de6/dotdrop/badge.svg?branch=master)](https://coveralls.io/github/deadc0de6/dotdrop?branch=master)
[![PyPI version](https://badge.fury.io/py/dotdrop.svg)](https://badge.fury.io/py/dotdrop) [![PyPI version](https://badge.fury.io/py/dotdrop.svg)](https://badge.fury.io/py/dotdrop)
[![AUR](https://img.shields.io/aur/version/dotdrop.svg)](https://aur.archlinux.org/packages/dotdrop)
[![Python](https://img.shields.io/pypi/pyversions/dotdrop.svg)](https://pypi.python.org/pypi/dotdrop) [![Python](https://img.shields.io/pypi/pyversions/dotdrop.svg)](https://pypi.python.org/pypi/dotdrop)
*Save your dotfiles once, deploy them everywhere* *Save your dotfiles once, deploy them everywhere*
@@ -30,6 +31,7 @@ Features:
* Easy import dotfiles * Easy import dotfiles
* Handle files and directories * Handle files and directories
* Associate an action to the deployment of specific dotfiles * Associate an action to the deployment of specific dotfiles
* Associate transformations that allow to store encrypted dotfiles
Check the [blog post](https://deadc0de.re/articles/dotfiles.html) and Check the [blog post](https://deadc0de.re/articles/dotfiles.html) and
and the [example](#example) for more. and the [example](#example) for more.
@@ -85,7 +87,9 @@ to your dotfiles git tree or system-wide [with pypi](#with-pypi).
Having dotdrop as a submodule guarantees that anywhere your are cloning your dotfiles git tree Having dotdrop as a submodule guarantees that anywhere your are cloning your dotfiles git tree
from you'll have dotdrop shipped with it. It is the recommended way. from you'll have dotdrop shipped with it. It is the recommended way.
Dotdrop is also available on aur: https://aur.archlinux.org/packages/dotdrop/ Dotdrop is also available on aur:
* stable: https://aur.archlinux.org/packages/dotdrop/
* git version: https://aur.archlinux.org/packages/dotdrop-git/
## As a submodule ## As a submodule

View File

@@ -0,0 +1,28 @@
# Maintainer: deadc0de6 <info@deadc0de.ch>
_pkgname=dotdrop
pkgname="${_pkgname}-git"
pkgver=0.10.r10.gafe0c71
pkgrel=1
pkgdesc="Save your dotfiles once, deploy them everywhere "
arch=('any')
url="https://github.com/deadc0de6/dotdrop"
license=('GPL')
groups=()
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt' 'python-pyaml')
makedepends=('git')
provides=(dotdrop)
conflicts=(dotdrop)
source=("git+https://github.com/deadc0de6/dotdrop.git")
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}
package() {
cd "${_pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1
}

View File

@@ -0,0 +1,25 @@
# Maintainer: deadc0de6 <info@deadc0de.ch>
pkgname=dotdrop
pkgver=
pkgrel=1
pkgdesc="Save your dotfiles once, deploy them everywhere "
arch=('any')
url="https://github.com/deadc0de6/dotdrop"
license=('GPL')
groups=()
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt' 'python-pyaml')
makedepends=('git')
source=("git+https://github.com/deadc0de6/dotdrop.git#tag=v${pkgver}")
md5sums=('SKIP')
pkgver() {
cd "${pkgname}"
git describe --abbrev=0 --tags | sed 's/^v//g'
}
package() {
cd "${pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1
}

View File

@@ -1,16 +0,0 @@
pkgbase = dotdrop
pkgdesc = Save your dotfiles once, deploy them everywhere
pkgver = 0.10
pkgrel = 1
url = https://github.com/deadc0de6/dotdrop
arch = any
license = GPL
depends = python
depends = python-jinja
depends = python-docopt
depends = python-pyaml
source = git+https://github.com/deadc0de6/dotdrop.git
md5sums = SKIP
pkgname = dotdrop

View File

@@ -1,24 +0,0 @@
# Maintainer: deadc0de6 <info@deadc0de.ch>
pkgname=dotdrop
pkgver=0.10
pkgrel=1
pkgdesc="Save your dotfiles once, deploy them everywhere "
arch=('any')
url="https://github.com/deadc0de6/dotdrop"
license=('GPL')
groups=()
depends=('python' 'python-jinja' 'python-docopt' 'python-pyaml')
source=("git+https://github.com/deadc0de6/dotdrop.git")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git tag -l | tail -1 | sed 's/^v//g'
}
package() {
cd "${pkgname}"
python setup.py install --root="${pkgdir}/"
}

47
packages/genpkg.sh Executable file
View File

@@ -0,0 +1,47 @@
#!/bin/bash
# author: deadc0de6
#
# update packages
#
# $1: version
up()
{
# update pkgver
[ "${1}" != "" ] && sed -i "s/^pkgver=.*$/pkgver=${1}/g" ${pkgfile}
# create srcinfo
rm -f .SRCINFO
makepkg --printsrcinfo > .SRCINFO
}
# pivot
cur=$(dirname "$(readlink -f "${0}")")
opwd=`pwd`
pkgfile="PKGBUILD"
cd ${cur}
########################
# update arch package
# tag release
########################
dir="arch-dotdrop"
echo "doing ${dir} ..."
cd ${dir}
version="`git describe --abbrev=0 --tags | sed 's/^v//g'`"
up ${version}
cd ${OLDPWD}
########################
# update arch package
# git release
########################
dir="arch-dotdrop-git"
echo "doing ${dir} ..."
cd ${dir}
# replace pkgver
#version="`git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'`"
up
cd ${OLDPWD}
# pivot back
cd ${opwd}