diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7e6a7cf65c2f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = packup + pkgdesc = A simple Pacman backup and restore script. + pkgver = 3.e8af569 + pkgrel = 4 + url = https://github.com/ghost1227/packup + arch = any + license = GPL + makedepends = git + depends = dialog + source = git://github.com/ghost1227/packup + md5sums = SKIP + +pkgname = packup + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5b6952e65350 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> +# Maintainer : Zoe <chp321@gmail.com> + +pkgname=packup +pkgver=3.e8af569 +pkgrel=4 +pkgdesc="A simple Pacman backup and restore script." +arch=('any') +url="https://github.com/ghost1227/packup" +license=('GPL') +makedepends=('git') +depends=('dialog') +source=(git://github.com/ghost1227/packup) +md5sums=('SKIP') + + +pkgver() { + cd $pkgname + echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} + +package() { + cd ${srcdir}/${pkgname} + + install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} + install -Dm644 man/${pkgname}.1 ${pkgdir}/usr/share/man/man1/${pkgname}.1 +} |