summaryrefslogtreecommitdiff
path: root/pcr/gentoo-functions/PKGBUILD
blob: 7ae9d92f0cbfd0551b201389d1c17909f2126939 (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
# Maintainer (Manjaro): artoo <artoo@manjaro.org>
# Contributor (Manjaro): williamh <williamh@gentoo.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: Luke Shumaker <lukeshu@parabola.nu>

# Gentoo's ebuild file:
# https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/gentoo-functions/gentoo-functions-9999.ebuild
pkgname=gentoo-functions
pkgver=0.12
pkgrel=1
pkgdesc="Base functions for Gentoo systems"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/gentoo/$pkgname"
license=('GPL2')
source=("$pkgname-$pkgver.tar.gz::https://github.com/gentoo/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('4a6ddb1d8be7b52aae68761fb26546663b6b0e74b155df263cddfbfa72373965')

_makeargs=(
  ROOTPREFIX=/usr
  ROOTSBINDIR=/usr/bin
)

build(){
    cd "$srcdir/$pkgname-$pkgver"
    make "${_makeargs[@]}"
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    make DESTDIR="${pkgdir}" "${_makeargs[@]}" install
}