diff options
author | Caleb Maclennan | 2017-04-20 12:43:06 +0300 |
---|---|---|
committer | Caleb Maclennan | 2017-04-20 12:43:06 +0300 |
commit | ee2de3bfb5d1647d5ffee2897a6eaab948bdce84 (patch) | |
tree | 1c164f62dbd88bc223f1d4ab899cb04fa63ad578 | |
parent | 374772bfa15e88763c8bb73052e51e8750879fbb (diff) | |
download | aur-ee2de3bfb5d1647d5ffee2897a6eaab948bdce84.tar.gz |
Use proper prepare() and build() cycles
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 17 insertions, 15 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Thu Apr 20 09:38:39 UTC 2017 +# Thu Apr 20 09:42:49 UTC 2017 pkgbase = stund pkgdesc = STUN Server and Client pkgver = 0.97 - pkgrel = 3 + pkgrel = 4 url = http://downloads.sourceforge.net/project/stun/stun/ arch = x86_64 arch = i686 @@ -1,11 +1,8 @@ # Maintainer: Caleb Maclennan <caleb@alerque.com> -# -# Any suggestions welcome; please submit paches via Github: -# https://github.com/alerque/aur/tree/master/git-annex-bin pkgname=stund pkgver=0.97 -pkgrel=3 +pkgrel=4 pkgdesc="STUN Server and Client" url="http://downloads.sourceforge.net/project/stun/stun/" source=("http://downloads.sourceforge.net/project/stun/stun/${pkgver}/${pkgname}-${pkgver}.tgz" @@ -18,17 +15,22 @@ license=('GPL2') sha256sums=('83e1bf9c21399244c5e8ad19789121a3537399d6523a887a5abc6187adcdb1d7' '8c09a0acc8797bf8060ed84ca4e0d6ca242447ea8cbee6c28904a7056773030d') -package() { - cd "$srcdir/$pkgname" - - if [ `uname -m` = 'x86_64' ]; then - patch < $srcdir/fix_non_i386.patch +prepare() { + cd "${pkgname}" + if [[ $(uname -m) = x86_64 ]]; then + patch < ${srcdir}/fix_non_i386.patch fi +} - make all || return 1 +build() { + cd "${pkgname}" + make all +} - mkdir -p $pkgdir/usr/bin +package() { + cd "${pkgname}" + install -Ddm755 ${pkgdir}/usr/bin - cp server $pkgdir/usr/bin/stund || return 1 - cp client $pkgdir/usr/bin/stunc || return 1 + install -Dm0755 server ${pkgdir}/usr/bin/stund + install -Dm0755 client ${pkgdir}/usr/bin/stunc } |