Skip to content
Snippets Groups Projects
PKGBUILD 928 B
Newer Older
Giovanni Scafora's avatar
Giovanni Scafora committed
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=dmidecode
Jelle van der Waa's avatar
Jelle van der Waa committed
pkgver=3.6
pkgrel=1
pkgdesc="Desktop Management Interface table related utilities"
arch=('x86_64')
Jelle van der Waa's avatar
Jelle van der Waa committed
url="https://www.nongnu.org/dmidecode"
Jelle van der Waa's avatar
Jelle van der Waa committed
license=('GPL-2.0-or-later')
depends=('glibc')
Jelle van der Waa's avatar
Jelle van der Waa committed
# source=("https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.sig})
source=("https://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha256sums=('e40c65f3ec3dafe31ad8349a4ef1a97122d38f65004ed66575e1a8d575dd8bae'
Antonio Rojas's avatar
Antonio Rojas committed
            'SKIP')
Jelle van der Waa's avatar
Jelle van der Waa committed
validpgpkeys=('7CA69F4460F1BDC41FD2C858A5526B9BB3CD4E6A') # Jean Delvare (kernel.org) <jdelvare@suse.de>

build() {
Antonio Rojas's avatar
Antonio Rojas committed
  cd ${pkgname}-${pkgver}
Giovanni Scafora's avatar
Giovanni Scafora committed

Giovanni Scafora's avatar
Giovanni Scafora committed
  sed -i "s:sbin:bin:g" Makefile
  make prefix=/usr CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
Giovanni Scafora's avatar
Giovanni Scafora committed
}

package() {
Antonio Rojas's avatar
Antonio Rojas committed
  cd ${pkgname}-${pkgver}
Giovanni Scafora's avatar
Giovanni Scafora committed

Giovanni Scafora's avatar
Giovanni Scafora committed
  make prefix=/usr DESTDIR="${pkgdir}" install