Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/deadc0de6/dotdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Feb 12, 2018
2 parents e4788bd + 3cf3b51 commit 9d993da
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 41 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
[![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)
[![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)

*Save your dotfiles once, deploy them everywhere*
Expand All @@ -30,6 +31,7 @@ Features:
* Easy import dotfiles
* Handle files and directories
* 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
and the [example](#example) for more.
Expand Down Expand Up @@ -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
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

Expand Down
28 changes: 28 additions & 0 deletions packages/arch-dotdrop-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Maintainer: deadc0de6 <[email protected]>

_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
}

25 changes: 25 additions & 0 deletions packages/arch-dotdrop/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Maintainer: deadc0de6 <[email protected]>

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
}

16 changes: 0 additions & 16 deletions packages/arch/.SRCINFO

This file was deleted.

24 changes: 0 additions & 24 deletions packages/arch/PKGBUILD

This file was deleted.

47 changes: 47 additions & 0 deletions packages/genpkg.sh
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 9d993da

Please sign in to comment.