blob: 6fc2440ccb720b71e01cebe5c56bf0ae75bf5af8 (
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
|
# Maintainer: Brenton Horne <brentonhorne77 at gmail dot com>
pkgver=ece5d09
pkgrel=1
_module=emprint
_pkgname=moksha-modules-extra
pkgname=moksha-module-${_module}-git
category=('moksha-modules-extra')
pkgdesc="Emprint Moksha module"
arch=('i686' 'x86_64')
url="http://mokshadesktop.org"
license=('BSD')
depends=('efl')
makedepends=('git')
source=("$_pkgname::git+https://github.com/JeffHoogland/moksha-modules-extra.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --always | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}/lib/${_module}"
msg2 "Building $_module"
./autogen.sh \
--prefix=/usr
make
}
package() {
cd "${srcdir}/${_pkgname}/lib/${_module}"
msg2 "Installing $_module"
make DESTDIR="${pkgdir}" install
# install text files
[[ -e ChangeLog ]] && install -Dm644 ChangeLog "${pkgdir}/usr/share/doc/${pkgname%-*}/$_module/ChangeLog" || true
[[ -e NEWS ]] && install -Dm644 NEWS "${pkgdir}/usr/share/doc/${pkgname%-*}/$_module/NEWS" || true
[[ -e README ]] && install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname%-*}/$_module/README" || true
# install license files
[[ -e AUTHORS ]] && install -Dm644 AUTHORS "${pkgdir}/usr/share/licenses/$pkgname/$_module/AUTHORS" || true
[[ -e COPYING ]] && install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/$_module/COPYING" || true
[[ -e COPYING-PLAIN ]] && install -Dm644 COPYING-PLAIN "${pkgdir}/usr/share/licenses/$pkgname/$_module/COPYING-PLAIN" || true
}
|