archrelease: copy trunk to extra-x86_64
[arch-packages.git] / linux-atm / trunk / PKGBUILD
blob9e18cb1e734d0798be30a91fb044b32a072607bd
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=8
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 sha256sums=('9645481a2b16476b59220aa2d6bc5bc41043f291326c9b37581018fbd16dd53a'
20             '0e535ace1a88d4bba95a586f9357a6fef5258e07ffeba209d630e32149dfaa07'
21             'd894e81b77dfe376bc9d917799e397be7e2fc28bc8ef657ee3fadccbf7e66c76'
22             'df2ed44ec81576f014a75a0d7029fab7366a65b21a4beed0c18812b7886aa202'
23             '8cac3c3703b80606b537611865a37e83b271295a34e563a2c62c5644b75bdd0f')
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