summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: defa109e3fcad8bf2c45f126f9b7194f60371f70 (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
# Maintainer: insanengineer <insanengineer@gmail.com>
pkgname=touchpad-disabler
pkgver=0.4
pkgrel=1
pkgdesc="This application will disable a laptops touchpad when a usb is plugged in and display a notification to the user."
arch=('i686' 'x86_64')
url="https://github.com/insanengineer/touchpad-disabler"
license=('GPL2')
depends=('gtk3' 'libnotify' 'gconf>=2.18.0.1-4')
makedepends=('git')
source=('git+https://github.com/insanengineer/touchpad-disabler.git')
md5sums=('SKIP') 
install="${pkgname}.install"

pkgver() {
  cd "${srcdir}/${pkgname}"
  git describe --tag | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${pkgname}"
  make
}

package() {
  cd "${srcdir}/${pkgname}"

  install -Dm755 "bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"

  install -Dm644 "schemas/apps.${pkgname}.gschema.xml" "${pkgdir}/usr/share/glib-2.0/schemas/apps.${pkgname}.gschema.xml"

  desktop-file-install --dir="${pkgdir}/usr/share/applications" "${pkgname}.desktop"
}