summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c7a71f6ae395fd76dd5f227ef8f2747c1183f21 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libogg-git
pkgver=1.3.3.r19.g6ccfcc2
pkgrel=2
pkgdesc="Reference implementation of the Ogg media container"
arch=('i686' 'x86_64')
url="https://www.xiph.org/ogg/"
license=('BSD')
depends=('glibc')
makedepends=('git')
provides=('libogg')
conflicts=('libogg')
options=('staticlibs')
source=("git+https://gitlab.xiph.org/xiph/ogg.git")
sha256sums=('SKIP')


pkgver() {
  cd "ogg"

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

build() {
  cd "ogg"

  ./autogen.sh
  ./configure \
    --prefix="/usr"
  make
}

package() {
  cd "ogg"

  make DESTDIR="$pkgdir" install
  install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/libogg"
}