blob: 8151b9991b5abb097e9e546aa159c64ddc868b55 (
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
|
# Maintainer: Nicolas Martyanoff <nicolas@n16f.net>
pkgname="freebsd-pkg"
_pkgname="pkg"
pkgver="1.21.3"
pkgrel="1"
pkgdesc="Package management tool for FreeBSD."
url="https://github.com/freebsd/pkg"
license=("BSD-2-Clause")
arch=("i686" "x86_64")
depends=("libarchive" "libbsd" "libelf")
makedepends=("autoconf" "automake" "libtool" "pkgconf")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/freebsd/pkg/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=("dbf84db9f83f5b504e71b57460e9e9dd590871e3cd87f5f7c8a208839d34f0d0")
build() {
cd "$_pkgname-$pkgver"
./configure --prefix=/usr
make
}
check() {
cd "$_pkgname-$pkgver"
make -k check
}
package() {
cd "$_pkgname-$pkgver"
# /usr/etc is a non-standard directory on Linux, and 'make install' does
# not create it, so we do it ourselves.
mkdir -p "$pkgdir/usr/etc"
make DESTDIR="$pkgdir" install
# /usr/sbin is a symbolic link to /usr/bin on Archlinux, and Pacman does
# not like packages referencing it.
mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin"
# The repository license file does not reference the authors, so we
# concatenate both files.
cp COPYING LICENSE
echo '' >>LICENSE
cat AUTHORS >>LICENSE
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|