blob: daafbcfb0573272055f5e77c981a902ed5c40ae1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Guilherme Machado <machadofguilherme@gmail.com>
pkgname=distrodown-git
pkgrel=1
pkgver=8
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}
}
|