diff options
author | guicolorado | 2018-03-29 04:47:28 -0300 |
---|---|---|
committer | guicolorado | 2018-03-29 04:47:28 -0300 |
commit | 6999461ac4ff4c74cf0d8522961b0602214dd9a1 (patch) | |
tree | 293de2b28fafe1f1138a83cd598e68da7db67e35 | |
download | aur-6999461ac4ff4c74cf0d8522961b0602214dd9a1.tar.gz |
Distro Down
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0de1cffd51f1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = distrodown-git + pkgdesc = Download Easy Linux distros + pkgver = 5 + pkgrel = 1 + url = https://github.com/automatizando/distrodown + arch = any + license = GPL3 + makedepends = git + depends = wget + source = distrodown::git+https://github.com/automatizando/distrodown.git + md5sums = SKIP + +pkgname = distrodown-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d9c7abdfc980 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Guilherme Machado <machadofguilherme@gmail.com> + +pkgname=distrodown-git +pkgrel=1 +pkgver=5 +pkgdesc="Download Easy Linux distros" +arch=('any') +url="https://github.com/automatizando/${pkgname%-git}" +license=('GPL3') +depends=('wget') +makedepends=('git') +optdepends=() +source=("${pkgname%-git}::git+https://github.com/automatizando/${pkgname%-git}.git") +md5sums=('SKIP') + +pkgver() { + cd ${pkgname%-git} + echo "$(git rev-list --count master)" +} + +package() { + cd ${pkgname%-git} + + # binaries + mkdir -p ${pkgdir}/usr/bin/ + + # copy all executables + find . -executable -not -path '/\.' -type f -exec cp {} ${pkgdir}/usr/bin \; + + # shared + mkdir -p $pkgdir/usr/share/${pkgname%-git} + cp README.md $pkgdir/usr/share/${pkgname%-git} + cp LICENSE $pkgdir/usr/share/${pkgname%-git} +} |