summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89414904826872a3ebba57f1c908cc6b4abc51ba (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
# Maintainer: Hans-Nikolai Viessmann <hans AT viess DOT mn>
pkgname="bsdsed"
_freebsd_ver="14.1.0"
pkgver="$_freebsd_ver"
pkgrel=3
pkgdesc="BSD variant of sed"
arch=('x86_64')
url="https://github.com/freebsd/freebsd-src/tree/main/usr.bin/sed"
license=('BSD')
depends=('glibc')
source=("https://github.com/freebsd/freebsd-src/archive/refs/tags/release/$_freebsd_ver.tar.gz"
        "Makefile"
        "errc.c"
        "linux_compat.h")
sha256sums=('87e1968215be2e0ec5a8e30bf79f227399608a4e8e16af697f12e0ab34fcb5bf'
            '867fbbe109c880beb06b543bd39cc093b68f2dfa04cdd64cb166decf45c8f33f'
            'ffa4df0805e86b6298758b0abd4857b189d2d8b4df0de510376efd064a3d5e64'
            '64c848535ea2af835c1cf3b24a0843408bc4ecd542ff660f023fe9413d6888c2')

build() {
	cd "$srcdir"
	make FREEBSDVER=$_freebsd_ver
}

package() {
	cd "$srcdir"
	make FREEBSDVER=$_freebsd_ver DESTDIR="$pkgdir/" install

	install -Dm644 -t $pkgdir/usr/share/licenses/$pkgname/ freebsd-src-release-$_freebsd_ver/COPYRIGHT
}