diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-06 09:16:08 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-19 07:20:30 +0000 |
commit | 91ac22a209c4f1cc130f9ee182b3bfaa6a3a4e86 (patch) | |
tree | 152e00fd7d96c378389770c24cebbb89f95c489a | |
parent | 5a8e18d570bb81966dd636dd4d4bf048a2375c0a (diff) | |
download | alpine_aports-91ac22a209c4f1cc130f9ee182b3bfaa6a3a4e86.tar.bz2 alpine_aports-91ac22a209c4f1cc130f9ee182b3bfaa6a3a4e86.tar.xz alpine_aports-91ac22a209c4f1cc130f9ee182b3bfaa6a3a4e86.zip |
main/libtheora: modernize, split -static, fix url, fix license
-rw-r--r-- | main/libtheora/APKBUILD | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/main/libtheora/APKBUILD b/main/libtheora/APKBUILD index de280437ed..f1c720dd78 100644 --- a/main/libtheora/APKBUILD +++ b/main/libtheora/APKBUILD | |||
@@ -1,12 +1,12 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=libtheora | 2 | pkgname=libtheora |
3 | pkgver=1.1.1 | 3 | pkgver=1.1.1 |
4 | pkgrel=13 | 4 | pkgrel=14 |
5 | pkgdesc="An open video codec developed by the Xiph.org" | 5 | pkgdesc="An open video codec developed by the Xiph.org" |
6 | url="http://www.xiph.org" | 6 | url="https://www.xiph.org" |
7 | arch="all" | 7 | arch="all" |
8 | license="custom" | 8 | license="BSD-3-Clause" |
9 | subpackages="$pkgname-dev $pkgname-doc $pkgname-examples" | 9 | subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-examples" |
10 | depends_dev="libogg-dev" | 10 | depends_dev="libogg-dev" |
11 | makedepends="libvorbis-dev libogg-dev sdl-dev autoconf automake libtool | 11 | makedepends="libvorbis-dev libogg-dev sdl-dev autoconf automake libtool |
12 | linux-headers" | 12 | linux-headers" |
@@ -17,7 +17,6 @@ source="http://downloads.xiph.org/releases/theora/$pkgname-$pkgver.tar.bz2 | |||
17 | fix-mmx.patch | 17 | fix-mmx.patch |
18 | automake.patch | 18 | automake.patch |
19 | " | 19 | " |
20 | builddir="$srcdir/$pkgname-$pkgver" | ||
21 | 20 | ||
22 | prepare() { | 21 | prepare() { |
23 | default_prepare | 22 | default_prepare |
@@ -46,17 +45,12 @@ build() { | |||
46 | 45 | ||
47 | check() { | 46 | check() { |
48 | cd "$builddir" | 47 | cd "$builddir" |
49 | |||
50 | make check | 48 | make check |
51 | } | 49 | } |
52 | 50 | ||
53 | package() { | 51 | package() { |
54 | cd "$builddir" | 52 | cd "$builddir" |
55 | |||
56 | make -j1 DESTDIR="$pkgdir" install | 53 | make -j1 DESTDIR="$pkgdir" install |
57 | |||
58 | install -m755 -d "$pkgdir"/usr/share/licenses/$pkgname | ||
59 | install -m644 LICENSE COPYING "$pkgdir"/usr/share/licenses/$pkgname/ | ||
60 | } | 54 | } |
61 | 55 | ||
62 | examples() { | 56 | examples() { |
@@ -69,18 +63,13 @@ examples() { | |||
69 | "$subpkgdir"/usr/bin/ | 63 | "$subpkgdir"/usr/bin/ |
70 | } | 64 | } |
71 | 65 | ||
72 | md5sums="292ab65cedd5021d6b7ddd117e07cd8e libtheora-1.1.1.tar.bz2 | 66 | static() { |
73 | 7cbab1ce1f52adb98e1c241515a27aca libtheora-flags.patch | 67 | depends="" |
74 | 5024b6c41351433bf0e8a354969f8efd enc.patch | 68 | pkgdesc="$pkgdesc (static libraries)" |
75 | b82250b0a1120e73bf225a0d313b848a fix-timeb.patch | 69 | mkdir -p "$subpkgdir"/usr/lib |
76 | 128a42b7182c73cccea61b3d76327f93 fix-mmx.patch | 70 | mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib |
77 | 0ed0917a6dac6a0e3242b1f7ce9785a5 automake.patch" | 71 | } |
78 | sha256sums="b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc libtheora-1.1.1.tar.bz2 | 72 | |
79 | 7efb7aec3e472914ffc0facbdc9769e088e5d69e285254d19f353555ca90c7d6 libtheora-flags.patch | ||
80 | eb8452cc4022e8a591c5b1e679c8c1434d965d842411feeb7121255aae5e4cc5 enc.patch | ||
81 | 38228518e7a4ef0efc29cef9f99e98cce1f9668eff6e43ac783478163c08e420 fix-timeb.patch | ||
82 | 287baa8021af52c62a8a2e998659043492f394327449a44541618ee586fd7783 fix-mmx.patch | ||
83 | 9a58f7cb9069c5b1792af07ddd7e5dfcc5765fd047f3dbe8e6ab9e39235da37c automake.patch" | ||
84 | sha512sums="9ab9b3af1c35d16a7d6d84f61f59ef3180132e30c27bdd7c0fa2683e0d00e2c791accbc7fd2c90718cc947d8bd10ee4a5940fb55f90f1fd7b0ed30583a47dbbd libtheora-1.1.1.tar.bz2 | 73 | sha512sums="9ab9b3af1c35d16a7d6d84f61f59ef3180132e30c27bdd7c0fa2683e0d00e2c791accbc7fd2c90718cc947d8bd10ee4a5940fb55f90f1fd7b0ed30583a47dbbd libtheora-1.1.1.tar.bz2 |
85 | 72916c4ed0f9609b84af7c72b35b558ecfb2ed7533739e170ed088e06d0e82a585dcc1185f3c5a5d0644d30901459813b635df2ba951e2290bcd4303cfebc20b libtheora-flags.patch | 74 | 72916c4ed0f9609b84af7c72b35b558ecfb2ed7533739e170ed088e06d0e82a585dcc1185f3c5a5d0644d30901459813b635df2ba951e2290bcd4303cfebc20b libtheora-flags.patch |
86 | 569132fd0a576abb26b3c28fe84c4c2c66ff871129f00bfb23e593b8f985e47d61bc910d383aa3fc7477cc9de21e86f8df412901c609a62da972410733ec41f2 enc.patch | 75 | 569132fd0a576abb26b3c28fe84c4c2c66ff871129f00bfb23e593b8f985e47d61bc910d383aa3fc7477cc9de21e86f8df412901c609a62da972410733ec41f2 enc.patch |