summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1968c8306ef6156b2cbc546a94702b6b89cf18d (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
# Maintainer: Artem Klevtsov <a.a.klevtsov@gmail com>

_pkgname=ioport
pkgname=ioport-git
pkgver=r4.af4b1b5
pkgrel=1
pkgdesc="Direct access to I/O ports from the command line"
arch=('x86_64')
url="https://people.redhat.com/rjones/ioport/"
license=('GPL2')
depends=('glibc')
makedepends=('gcc' 'make' 'm4' 'automake')
source=("${_pkgname}::git+git://git.annexia.org/ioport.git")
sha256sums=('SKIP')
conflicts=("${_pkgname}")
replaces=("${_pkgname}")

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"
  autoreconf -i
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${_pkgname}"
  make DESTDIR="${pkgdir}" install
}