blob: dd99d9c2d590ef58ab19a293e33627d175c6153d (
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
57
58
|
# Maintainer:Bipin Kumar <kbipinkumar@pm.me>
pkgname=outils
pkgver=0.13
pkgrel=1
pkgdesc="A port of some non-standard OpenBSD tools to Linux"
arch=('x86_64')
url="https://github.com/leahneukirchen/outils"
license=('BSD')
depends=('glibc')
provides=('apply'
'ou-cksum'
'jot'
'lam'
'lndir'
'md5'
'rdate'
'rs'
'ts'
'signify'
'unvis'
'vis'
'what')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/leahneukirchen/outils/archive/refs/tags/v${pkgver}.tar.gz"
'LICENSE')
b2sums=('043bcdcdd3bab12b2b8b9476163ecf5302b95e9eaca5b858d55b411f15c0075051d61ac470a17958132142644c0612f3903da0766714ec0586039f0583a728d5'
'3f242af7ea42dc13ba0a124da5861249b95195351fd181c86420c5e2580b8760f24574fe53062f7594071812958d1081e21fd3a7a78832a7a73eb441bead1231')
prepare(){
rm "$pkgname-$pkgver"/LICENSE
cp LICENSE "$pkgname-$pkgver"/
cd "$pkgname-$pkgver"/
# set proper LDFLAGS as recommended by Archlinux packging guidelines
sed -i 's|-Wl,--as-needed|-Wl,-O2,--sort-common,--as-needed,-z,relro,-z,now|g' Makefile
# calendar is also part of bsdmainutils. hence building same has to be disabled in the makefile
sed -i '58d' Makefile
sed -i '57d' Makefile
sed -i '28d' Makefile
sed -i 's/src\/usr\.bin\/calendar\/calendar//g' Makefile
# cksum binary from package is in conflict with 'cksum' provided by 'coreutils'. Hence the former is renamed to ou-cksum
sed -i 's/cksum/ou-cksum/g' Makefile
sed -i 's/cksum/ou-cksum/g' src/bin/md5/Makefile
mv src/bin/md5/cksum.1 src/bin/md5/ou-cksum.1
}
build() {
cd "$pkgname-$pkgver"
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
# remove man entry fro calendar as the same is not part of the package
rm ${pkgdir}/usr/share/man/man1/calendar.1
install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
}
|