diff options
author | Lara Maia | 2015-06-09 00:06:47 -0300 |
---|---|---|
committer | Lara Maia | 2015-06-09 00:06:47 -0300 |
commit | f9d0b7daf8da33ac945693cbcc9d74ab40e57a3f (patch) | |
tree | fe215bb53c3ec5e46102643e95e94f67bca2b43a | |
download | aur-f9d0b7daf8da33ac945693cbcc9d74ab40e57a3f.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | backup-conf.install | 10 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7b2148d6ac41 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = backup-conf + pkgdesc = This script create a backup of your config files in a tree format on current folder + pkgver = 4.4.2 + pkgrel = 1 + url = https://github.com/LaraCraft93/backup-conf + install = backup-conf.install + arch = any + license = GPL + depends = util-linux + depends = gettext + depends = colordiff + depends = sudo + optdepends = git: for git management + backup = etc/backup-conf.conf + source = https://github.com/LaraCraft93/backup-conf/archive/v4.4.2.tar.gz + source = backup-conf.install + md5sums = a2ce85ae88f9a9bebad4e8936710a05d + md5sums = b452e0f879c2d25650330a37ed13f110 + +pkgname = backup-conf + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..14419589e8c9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# maintainer: Lara Maia <lara@craft.net.br> + +pkgname=backup-conf +pkgdesc='This script create a backup of your config files in a tree format on current folder' +url="https://github.com/LaraCraft93/$pkgname" +pkgver=4.4.2 +pkgrel=1 +license=('GPL') +arch=('any') +backup=('etc/backup-conf.conf') +install='backup-conf.install' + +depends=('util-linux' + 'gettext' + 'colordiff' + 'sudo' + ) + +optdepends=('git: for git management') + +source=("https://github.com/LaraCraft93/$pkgname/archive/v$pkgver.tar.gz" + "backup-conf.install") + +md5sums=('a2ce85ae88f9a9bebad4e8936710a05d' + 'b452e0f879c2d25650330a37ed13f110') + +build() { + cd $pkgname-$pkgver + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + diff --git a/backup-conf.install b/backup-conf.install new file mode 100644 index 000000000000..b182348831c2 --- /dev/null +++ b/backup-conf.install @@ -0,0 +1,10 @@ +post_upgrade() { + echo "Example of configuration file installed on" + echo "/usr/share/backup-conf/backup-conf.conf.example" + echo 'copy to $XDG_CONFIG_HOME/backup-conf.conf or' + echo "/etc/backup-conf.conf, and edit with you files/directories." +} + +post_install() { + post_upgrade +} |