blob: 08961fc445d02c93a40d7ef9224357c51a4da250 (
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
|
# Maintainer: Christian Hesse <mail@eworm.de>
# Contributor: xduugu
pkgname=tuxcmd-modules-git
pkgver=0.6.74.r10.gbc2840a
pkgrel=1
pkgdesc='Modules for Tux Commander - git checkout'
arch=('i686' 'x86_64')
url='http://tuxcmd.sourceforge.net/'
license=('GPL')
depends=('tuxcmd')
makedepends=('git' 'sharutils')
optdepends=('gvfs: for gvfs module')
provides=('tuxcmd-modules')
conflicts=('tuxcmd-modules')
options=('!docs' '!emptydirs')
source=('git://git.bzatek.net/tuxcmd-modules/')
sha256sums=('SKIP')
pkgver() {
cd tuxcmd-modules/
if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
else
echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
fi
}
prepare() {
cd tuxcmd-modules/
# fix Makefiles
for MAKEFILE in $(find -name Makefile); do
sed -i 's|$(INSTALL) \(.*\) $(DESTDIR)/lib$(LIB_SUFFIX)/tuxcmd/|$(INSTALL) -D \1 $(DESTDIR)/lib/tuxcmd/\1|' ${MAKEFILE}
done
}
build() {
cd tuxcmd-modules/
make -j1
}
package() {
cd tuxcmd-modules/
make DESTDIR="${pkgdir}/usr" install
}
|