blob: 0cf2d543c8712f29878ac1e53a74d7d377127478 (
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: Swift Geek
pkgname=iotools-git
_pkgname=iotools
pkgver=a
pkgrel=1
pkgdesc="a suite of tools for reading and writing hardware registers"
arch=('i686' 'x86_64')
url="https://github.com/adurbin/iotools"
license=('GPL')
#depends=('')
makedepends=('git')
source=("git+https://github.com/adurbin/iotools.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${_pkgname}"
unset CPPFLAGS
#CFLAGS="$CFLAGS -static"
make
}
package() {
cd "$srcdir/${_pkgname}"
install -d -m0755 "${pkgdir}/usr/bin"
make SBINDIR="${pkgdir}/usr/bin" install
cd "${pkgdir}/usr/bin"
mv not not-${_pkgname}
}
|