summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0f8e91aac1efa637be7d569758cb55b66efdf6d8 (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
38
39
40
41
42
43
44
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libupnp-git
pkgver=1.8.2.r12.gf07f078
pkgrel=1
pkgdesc="Portable open source UPnP development kit"
arch=('i686' 'x86_64')
url="http://pupnp.sourceforge.net/"
license=('BSD')
depends=('glibc')
makedepends=('git')
provides=('libupnp')
conflicts=('libupnp')
options=('staticlibs')
source=("git+https://git.code.sf.net/p/pupnp/code")
sha256sums=('SKIP')


pkgver() {
  cd "code"

  git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "code"

  ./bootstrap
  ./configure --prefix="/usr"
  make
}

check() {
  cd "code"

  #make check
}

package() {
  cd "code"

  make DESTDIR="$pkgdir" install
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/libupnp/LICENSE"
}