blob: 89155b94e2f20d11550eec228ccec4c8281f2787 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Aaron Esau <lazypkg@aaronesau.com>
pkgname="lazypkg-git"
pkgver="1.0"
pkgrel="1"
license=("GPL")
arch=("i686" "x86_64")
md5sums=("SKIP")
url="https://github.com/Arinerron/lazypkg"
pkgdesc="a cross-distro package generator"
source=("${pkgname}-${pkgver}::git+https://github.com/Arinerron/lazypkg.git#branch=master")
depends=("python" "python-pip" "rsync")
rinstall() {
if [ -f "$1" ]; then
install -D "$1" "$2/" "$3" "$4"
return 0
fi
for file in $(find "$1" -type f -printf '%P\n'); do
install -D "$1/$file" "$2/$file" "$3" "$4"
done
return 0
}
prepare() {
# pre_build
cd "${srcdir}/${pkgname}-${pkgver}"
}
build() {
# build
cd "${srcdir}/${pkgname}-${pkgver}"
}
check() {
# post_build
cd "${srcdir}/${pkgname}-${pkgver}"
}
package() {
# "movements"
# ensure target directories exist
mkdir -p "$pkgdir//usr/share/lazypkg"
mkdir -p "$pkgdir//usr/bin/"
# copy files over and change perms
rinstall "${srcdir}/${pkgname}-${pkgver}/." "${pkgdir}//usr/share/lazypkg" --mode=755 --owner="root" --group="root"
rinstall "${srcdir}/${pkgname}-${pkgver}/lazypkg" "${pkgdir}//usr/bin/" --mode=755 --owner="root" --group="root"
}
|