blob: 5c69fdfdfa79251e2c0f43854bc199b058cf53dc (
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
|
# Maintainer: Peter Mattern <pmattern at arcor dot de>
_pkgname=charls
pkgname=$_pkgname-git
pkgver=2.4.1.r69.gcb6a9d7
pkgrel=1
pkgdesc='A C++ JPEG-LS library implementation'
arch=('i686' 'x86_64')
url='https://github.com/team-charls/charls'
license=('BSD')
makedepends=('git' 'cmake' 'dos2unix')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/team-charls/charls.git")
sha256sums=("SKIP")
pkgver() {
cd $_pkgname
git describe --always | sed 's/-/.r/;s/-/./'
}
prepare() {
# remove CRLF sequence
for i in $(find $_pkgname -type f -exec file {} \; | grep CRLF | sed 's/:.*$//')
do
dos2unix $i
done
}
build() {
mkdir -p build
cd build
cmake $srcdir/$_pkgname -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
install -D -m644 $srcdir/$_pkgname/LICENSE.md $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
|