summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58a6c2121abe01d7e5bf333a2edc0b2cd1a71725 (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.5.r9.gdb5c7a4
pkgrel=1
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=$pkgver" 'libogg.so')
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"
}