blob: 953bad3394d8b45c4c48ffaac0649514bce46ee3 (
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=2
pkgver=20
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}
}
|