blob: 7591ce3d2746e1192e9f313d0ab51a7f61d02827 (
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
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
pkgname=alternatives
pkgver=1.30
pkgrel=1
pkgdesc="Fedora's tool to maintain symbolic links determining default commands."
arch=('i686' 'x86_64')
url='https://github.com/fedora-sysv/chkconfig'
license=('GPL2')
depends=()
makedepends=()
checkdepends=('beakerlib')
conflicts=('chkconfig' 'dpkg')
source=("$pkgname-$pkgver.tar.gz::https://github.com/fedora-sysv/chkconfig/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('f694bb5b993915eab4d73313b094716a6873ed8bfbdf599ba3bcff997471a5fb')
_srcdir="chkconfig-${pkgver}"
build() {
cd "${_srcdir}"
make alternatives
cd 'po'
make
}
check() {
cd "${_srcdir}"
make check
}
package() {
cd "${_srcdir}"
install -dm755 "${pkgdir}/etc/alternatives"
install -Dm755 'alternatives' -t "${pkgdir}/usr/bin/"
ln -s 'alternatives' "${pkgdir}/usr/bin/update-alternatives"
install -dm755 "${pkgdir}/var/lib/alternatives"
# Install manual
pushd 'po' && make DESTDIR="${pkgdir}" install && popd
install -Dm644 "alternatives.8" -t "${pkgdir}/usr/share/man/man8"
ln -s 'alternatives.8' "${pkgdir}/usr/share/man/man8/update-alternatives.8"
install -Dpm644 'COPYING' -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|