aboutsummaryrefslogtreecommitdiffstats
path: root/main/pcmciautils/APKBUILD
blob: b4b0c8d07baa55f764d44493c820816843b22074 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pcmciautils
pkgver=018
pkgrel=1
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"
options="!check"
source="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz
	unsigned.patch
	disable_yywrap.patch
	"
builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$builddir"
	default_prepare || return 1
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir"/ install
	ln -sf pccardctl "$pkgdir"/sbin/lspcmcia
}

sha512sums="c7c1ecde41a60d3d1fcb12e3be309f8287d0242ad93e17b1286bf2818a0de1f415c89f63fec0571264e5ff87e99ba7ded905e6b671c2f6795ea910a0045261f5  pcmciautils-018.tar.xz
b96f9bc3176f1eeb936a31f8fab5a495ce14218e92fbae2350aa970328b53bd6732ade90721f1ca55d80a94436189773f83a300aa8af7c43ecc5ed62c95f3557  disable_yywrap.patch
18e5d3bfe3316c49e4a899b9181177c1c275274d5788a4af7299d0c6b8cbdfca8f3465f242356d35c6e96103cb620173e6f93e7e66787d5d2b194c5a4264bf91  unsigned.patch"