PKGBUILD 1.1 KB
Newer Older
1 2 3 4
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
Jan Mette's avatar
Jan Mette committed
5 6

pkgname=gpm
Manuel's avatar
Manuel committed
7 8
pkgver=1.20.7
pkgrel=1
Jan Mette's avatar
Jan Mette committed
9
pkgdesc="A mouse server for the console and xterm"
Manuel's avatar
Manuel committed
10 11
arch=('x86_64')
url="http://www.nico.schottelius.org/software/gpm/"
Jan Mette's avatar
Jan Mette committed
12
license=('GPL')
Manuel's avatar
Manuel committed
13
depends=('bash')
Jan Mette's avatar
Jan Mette committed
14 15
options=('!makeflags')
install=gpm.install
Manuel's avatar
Manuel committed
16 17 18 19 20
source=(http://www.nico.schottelius.org/software/gpm/archives/${pkgname}-${pkgver}.tar.lzma \
        gpm.sh gpm.service)
sha1sums=('8d9f3655c80ce7667d31ede2a100b44986480369'
          '88fe5ff10916c68a87abc8418a56eb0073f69fa9'
          'f9bde96eb9c78da9f225bcf40822647f6592cf23')
Jan Mette's avatar
Jan Mette committed
21 22 23

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
Manuel's avatar
Manuel committed
24 25
  ./autogen.sh
  ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
26 27 28 29 30 31 32
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -D -m755 ../gpm.sh "${pkgdir}/etc/profile.d/gpm.sh"
Manuel's avatar
Manuel committed
33
  install -D -m644 ../gpm.service "${pkgdir}/usr/lib/systemd/system/gpm.service"
Jan Mette's avatar
Jan Mette committed
34 35

  cd "${pkgdir}/usr/lib/"
36 37
  ln -s libgpm.so.2.* libgpm.so
  chmod 755 "${pkgdir}"/usr/lib/libgpm.so.*
Jan Mette's avatar
Jan Mette committed
38
}