blob: 0b596d5e2d8f63b91d3856ba33fb58afaa1ec815 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Submitter: Doug Newgard <scimmia22 at outlook dot com>
# Contributor: Ronald vandd Haren <ronald.archlinux.org>
# Previous Maintainer: chchch
# Current Maintainer: endlesseden
_pkgname=ephoto
pkgname=$_pkgname-git
pkgver=1.26.0.939.9433e6d
pkgrel=1
pkgdesc="A light image viewer based on EFL"
arch=('i686' 'x86_64')
url="http://www.enlightenment.org"
license=('BSD')
depends=('efl')
makedepends=('git')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=("git+http://git.enlightenment.org/enlightenment/$_pkgname.git")
#source=("http://www.smhouston.us/stuff/ephoto-1.5.tar.gz")
sha256sums=('SKIP')
pkgver() {
# cd $_pkgname-$pkgver
#cd ephoto-1.5
cd $_pkgname
efl_version=$(grep -m1 efl_version meson.build | sed -e 's/\s\+/\n/g' | tail -1 | sed -e "s/'/\n/g" | head -1)
printf "$efl_version.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
# cd $_pkgname-$pkgver
cd $_pkgname
#cd ephoto-1.5
rm -rf build
arch-meson $@ . build \
--prefix=/usr \
--buildtype=release \
--default-library=shared \
--optimization=3
meson compile -C build
}
check() {
cd $_pkgname
meson test -C build
}
package() {
# cd $_pkgname-$pkgver
cd $_pkgname
#cd ephoto-1.5
DESTDIR="$pkgdir" meson install -C build
# install text files
install -Dm644 -t "$pkgdir/usr/share/doc/$_pkgname/" TODO README
# install license files
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" AUTHORS COPYING
}
|