2013-07-23 08:25:19 +02:00
|
|
|
# Template file for 'gpm'
|
|
|
|
pkgname=gpm
|
|
|
|
version=1.20.7
|
2014-12-14 13:30:35 +01:00
|
|
|
revision=6
|
2014-11-05 22:24:35 +01:00
|
|
|
build_options="systemd"
|
2013-07-23 08:25:19 +02:00
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="automake libtool flex"
|
|
|
|
makedepends="ncurses-devel libfl-devel"
|
|
|
|
short_desc="A mouse server for the console and xterm"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.nico.schottelius.org/software/gpm/"
|
|
|
|
license="GPL-2"
|
2014-12-01 23:15:53 +01:00
|
|
|
update_site="https://github.com/telmich/gpm/tags"
|
|
|
|
update_pattern='archive/\K[\d.]+(?=\.tar\.gz)'
|
|
|
|
update_ignore="1.99*"
|
2013-07-23 08:25:19 +02:00
|
|
|
distfiles="http://www.nico.schottelius.org/software/gpm/archives/${pkgname}-${version}.tar.lzma"
|
|
|
|
checksum=a955053b36556ffa7c628ce18fd6de7d625966573fa412fb08869533d8f7385c
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
./autogen.sh
|
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
cd ${DESTDIR}/usr/lib
|
|
|
|
ln -s libgpm.so.2.* libgpm.so
|
|
|
|
touch ${DESTDIR}/usr/share/info/dir
|
|
|
|
|
2014-12-14 13:30:35 +01:00
|
|
|
vinstall ${FILESDIR}/gpm.sh 644 etc/profile.d
|
2014-11-05 22:24:35 +01:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/gpm.service 644 usr/lib/systemd/system
|
|
|
|
fi
|
2014-11-04 06:28:44 +01:00
|
|
|
vsv gpm
|
2013-07-23 08:25:19 +02:00
|
|
|
}
|
|
|
|
gpm-devel_package() {
|
|
|
|
depends="libgpm-${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
libgpm_package() {
|
|
|
|
short_desc+=" - runtime library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so.*"
|
|
|
|
}
|
|
|
|
}
|