2.42.9-1
[arch-packages.git] / linux-atm / repos / extra-x86_64 / PKGBUILD
blob9117acc6e6fa48960aff37fdfef4b2f9e2981968
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 # Contributor: Surain Mallawa Arachchi <mas@crc32.net>
4 pkgname=linux-atm
5 pkgver=2.5.2
6 pkgrel=7
7 pkgdesc="Drivers and tools to support ATM networking under Linux."
8 arch=('x86_64')
9 depends=('glibc')
10 optdepends=('flex: for atmsigd')
11 url="http://linux-atm.sourceforge.net/"
12 license=(GPL)
13 source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
14         linux-atm-man-pages.patch
15         linux-atm-remove-define-hacks.patch
16         linux-atm-linux-5.2-SIOCGSTAMP.patch
17         linux-atm-string-formatting.patch)
18 options=(!makeflags)
19 md5sums=('d49499368c3cf15f73a05d9bce8824a8'
20          '181390736336cdb615ae32f1ae5acfa6'
21          '74275ad95cef3898ef3ec52c21012e45'
22          'a5a44b282461e6530ad8db0f032bf3d5'
23          'b08a6e98ffac0f2870be7f3a60948c5f')
25 prepare() {
26   cd "${pkgname}-${pkgver}"
27   patch -Np1 -i ../linux-atm-man-pages.patch
28   patch -Np1 -i ../linux-atm-remove-define-hacks.patch
29   patch -Np1 -i ../linux-atm-linux-5.2-SIOCGSTAMP.patch
30   patch -Np1 -i ../linux-atm-string-formatting.patch
32   # install firmware in /usr/lib
33   sed -i "s#/lib/firmware#/usr/lib/firmware#" src/extra/Makefile.in
36 build() {
37   cd "${srcdir}/${pkgname}-${pkgver}"
38   ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc
39   make
42 package() {
43   cd "${srcdir}/${pkgname}-${pkgver}"
44   make DESTDIR="${pkgdir}" install