-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathPKGBUILD.proto
64 lines (51 loc) · 950 Bytes
/
PKGBUILD.proto
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
57
58
59
60
61
62
63
64
pkgbuild_version=5
pkgname=packagename
pkgver=1.1.1
backup=(
'/etc/config.file'
)
overwrite=(
'/usr/lib/bla.so'
)
dependencies=(
"!$pkgname"
'package'
'otherpackage>2'
)
sources=(
"http://www.somedomain.com/${pkgname}-${pkgver}.tar.gz"
)
sha1sums=(
'046fb3a32f7c2b21ae30d7f5566b112ca577f1dc'
)
# All the following functions are already provided and you only need them if they differ
lfs_me_prepare() {
tar -xf "${sources_dir}/${pkgname}-${pkgver}.tar.gz" -C "$build_dir"
cd "${build_dir}/${pkgname}-${pkgver}"
./configure --prefix=/usr
}
lfs_me_build() {
cd "${build_dir}/${pkgname}-${pkgver}"
make
}
lfs_me_check() {
cd "${build_dir}/${pkgname}-${pkgver}"
make check
}
lfs_me_install() {
cd "${build_dir}/${pkgname}-${pkgver}"
make DESTDIR="$fakeroot_dir" install
}
lfs_me_preinstall() {
return
}
lfs_me_postinstall() {
return
}
lfs_me_preremove() {
return
}
lfs_me_postremove() {
return
}
# vim:set ts=4 syntax=sh: