Contents of /smage/branches/alx07x-unstable/core/xautolock/xautolock-2.2-r9.smage2
Parent Directory | Revision Log
Revision 14538 -
(show annotations)
(download)
Tue Aug 4 11:16:28 2020 UTC (4 years, 1 month ago) by niro
File size: 1193 byte(s)
Tue Aug 4 11:16:28 2020 UTC (4 years, 1 month ago) by niro
File size: 1193 byte(s)
-release branches/alx07x-unstable
1 | # $Id$ |
2 | |
3 | PNAME="xautolock" |
4 | PVER="2.2" |
5 | PBUILD="r9" |
6 | |
7 | PCAT="x11-misc" |
8 | |
9 | DESCRIPTION="An automatic X screen-locker/screen-saver." |
10 | HOMEPAGE="http://freshmeat.net/projects/xautolock/" |
11 | |
12 | DEPEND=">= x11-libs/libXScrnSaver-1.2 |
13 | >= x11-misc/xlockmore-5" |
14 | |
15 | SDEPEND=">= x11-misc/imake-1 |
16 | >= x11-libs/libXScrnSaver-dev-1.2" |
17 | |
18 | SRCFILE="${PNAME}-${PVER}.tgz" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
20 | |
21 | ALX_PKG_KEEP="usr/bin/xautolock" |
22 | msetfeature "!check" # no check target in Makefile |
23 | sminclude mbuild mtools alx-split |
24 | |
25 | SRC_URI=( |
26 | #http://www.ibiblio.org/pub/Linux/X11/screensavers/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${PNAME}-${PVER}-do-not-use-union-wait-type.patch |
29 | ) |
30 | |
31 | UP2DATE="updatecmd http://www.ibiblio.org/pub/Linux/X11/screensavers/ | grep ${PNAME}- | highesttarball tgz" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # fix ftbfs with newer gcc |
39 | mpatch ${PNAME}-${PVER}-do-not-use-union-wait-type.patch || die |
40 | } |
41 | |
42 | src_compile() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | xmkmf || die |
47 | mmake || die |
48 | } |
49 | |
50 | alx_generic_src_install() |
51 | { |
52 | cd ${SRCDIR} |
53 | minstallexec xautolock || die |
54 | cp xautolock.man xautolock.1 || die |
55 | minstallman xautolock.1 || die |
56 | minstalldocs Changelog License Readme Todo || die |
57 | } |