-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/deadc0de6/dotdrop
- Loading branch information
Showing
6 changed files
with
105 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |