blob: 9d405acc369074ad0a47c2d774324f3fb25d733f (
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
|
pkgname=mock-core-configs
pkgver=42.1
_rpmrel=1
_pkgtag=$pkgname-$pkgver-$_rpmrel
pkgrel=$_rpmrel.1
pkgdesc="Mock core config files basic chroots"
url="https://github.com/rpm-software-management/mock"
arch=('any')
license=('GPL-2.0-or-later')
depends=('distribution-gpg-keys>=1.107')
backup=('etc/mock/default.cfg')
source=("$url/archive/$_pkgtag.tar.gz")
sha256sums=('33d9e1e01c9172e316b642018381dbffcf8b445d8bc8508fb9ab32e1d191db72')
# Uncomment to not package configs for EOLed versions of distributions
#_without_eol=1
prepare() {
mv "mock-$_pkgtag" "$pkgname-$pkgver"
}
package() {
cd "$pkgname-$pkgver"
pushd "$pkgname" >/dev/null
mkdir -p "$pkgdir/"etc/mock
install -Dp -m644 etc/mock/*.cfg "$pkgdir/"etc/mock/
install -Dp -m644 etc/mock/fedora-rawhide-"$CARCH".cfg "$pkgdir/"etc/mock/default.cfg
rm "$pkgdir/"etc/mock/site-defaults.cfg
mkdir -p "$pkgdir/"etc/mock/templates
install -Dp -m644 etc/mock/templates/*.tpl "$pkgdir/"etc/mock/templates/
if ((!_without_eol)); then
mkdir -p "$pkgdir/"etc/mock/eol
install -Dp -m644 etc/mock/eol/*.cfg "$pkgdir/"etc/mock/eol/
mkdir -p "$pkgdir/"etc/mock/eol/templates
install -Dp -m644 etc/mock/eol/templates/*.tpl "$pkgdir/"etc/mock/eol/templates/
fi
install -Dp -m644 README "$pkgdir/usr/share/doc/$pkgname/README"
popd >/dev/null
}
# vim: set ft=sh ts=4 sw=4 noet:
|