APKBUILD 1.27 KB
Newer Older
1 2 3 4
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>

pkgname=dahdi-linux
5
pkgver=2.11.1
6
pkgrel=0
7 8
pkgdesc="Firmware for Digium Asterisk Hardware Device Interface drivers"
url="http://www.asterisk.org"
Timo Teräs's avatar
Timo Teräs committed
9
arch="noarch"
10 11
license="GPL"
depends=
12
makedepends="wget tar"
13 14
install=
subpackages="$pkgname-dev"
15
source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/$pkgname-$pkgver.tar.gz
16
	"
17

18
# We online install the firmwares in this package since those are common for all
19 20 21
# kernel flavors. We also install the headers for the -dev package.
#
# The kernel drivers themselves are built from separate build recipe.
22
prepare() {
23
	cd "$srcdir"/$pkgname-$pkgver
24 25 26 27
	for i in $source; do
		case $i in
		*.patch|*.diff) patch -p1 -i "$srcdir"/$i || return 1;;
		esac
28
	done
29
}
30

31 32 33 34 35 36
build() {
	return 0
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
37
	make -j1 DESTDIR="$pkgdir" HOTPLUG_FIRMWARE=yes \
38
		install-include install-firmware
39 40
}

41 42 43
md5sums="af96917e15eebc36519948133ec7e36b  dahdi-linux-2.11.1.tar.gz"
sha256sums="f59f382365118205e77d2874f1c0e1546e936247bcc45f07a43bc21778bee9df  dahdi-linux-2.11.1.tar.gz"
sha512sums="db15d9237f157b5349de8f4cdb45573ed42e1dd25c83f900835c7e15637a19e1e95c7c990dc786c1e3f37f32419f3d009e179d27b5d16421789ff9bc76f54224  dahdi-linux-2.11.1.tar.gz"