summaryrefslogtreecommitdiffstats
path: root/main/pcmciautils/APKBUILD
blob: a459d000cf8bbb54d2f381b6b5b2aa6c45b9c552 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pcmciautils
pkgver=018
pkgrel=0
pkgdesc="Utilities for inserting and removing PCMCIA cards"
url="http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
arch="all"
license="GPL"
subpackages="$pkgname-doc"
depends=
makedepends="sysfsutils-dev bison flex"
source="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz
	unsigned.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make -j1 LEX=flex || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir"/ install
	ln -sf pccardctl "$pkgdir"/sbin/lspcmcia
}
md5sums="2e9469c44dcb790d2b497723c2fa0566  pcmciautils-018.tar.xz
ba7aa35c8082cf2ca67785cd8f7f9524  unsigned.patch"
sha256sums="a5c09abeba95f750e8a8b01704114d733f0f0345f34e5c327bbb6a1bfd09c4b8  pcmciautils-018.tar.xz
6f08ef800e0cf1d1b73cd51dfe2f60fb8d1b410150b2f52e32b1439af9fc5f6d  unsigned.patch"
sha512sums="c7c1ecde41a60d3d1fcb12e3be309f8287d0242ad93e17b1286bf2818a0de1f415c89f63fec0571264e5ff87e99ba7ded905e6b671c2f6795ea910a0045261f5  pcmciautils-018.tar.xz
18e5d3bfe3316c49e4a899b9181177c1c275274d5788a4af7299d0c6b8cbdfca8f3465f242356d35c6e96103cb620173e6f93e7e66787d5d2b194c5a4264bf91  unsigned.patch"