diff options
Diffstat (limited to '')
-rw-r--r-- | pony.computer/PKGBUILD | 34 | ||||
-rw-r--r-- | pony.computer/pony.computer.install | 20 | ||||
l--------- | pony.computer/upload (renamed from gtk3-print-backends-nocolord/upload) | 0 |
3 files changed, 54 insertions, 0 deletions
diff --git a/pony.computer/PKGBUILD b/pony.computer/PKGBUILD new file mode 100644 index 0000000..3b28106 --- /dev/null +++ b/pony.computer/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se> + +pkgname=pony.computer +pkgver=1428445028 +pkgrel=1 +pkgdesc="Show computer information and a pony" +url="https://github.com/GNU-Pony/pony.computer" +arch=(any) +license=(GPL3) +depends=(sh ponysay coreutils python3) +optdepends=("linux: Additional system information can be provided with Linux kernel's procfs /proc" + "filesystem: Identification of distribution" + "lsb-release: Identification of distribution") +makedepends=(make coreutils sed texinfo) +install=pony.computer.install +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=(997f8be119e36cbbdcafee2126ceccfac3e6551d839b78a93aba748f33d4469d) + +_prefix=/usr + + +build() { + cd "${srcdir}/pony.computer-${pkgver}" + make PREFIX="${_prefix}" PKGNAME="${pkgname}" DISTRO="Arch Linux" +} + +package() { + cd "${srcdir}/pony.computer-${pkgver}" + make PREFIX="${_prefix}" PKGNAME="${pkgname}" DESTDIR="${pkgdir}" install + _dir="${pkgdir}${_prefix}/share/licenses/${pkgname}" + mkdir -p -- "${_dir}" + ln -sf -- "/usr/share/licenses/common/GPL3" "${_dir}/LICENSE" +} + diff --git a/pony.computer/pony.computer.install b/pony.computer/pony.computer.install new file mode 100644 index 0000000..2cb5cc3 --- /dev/null +++ b/pony.computer/pony.computer.install @@ -0,0 +1,20 @@ +_file="pony.computer" + +infodir="usr/share/info" +file="${_file}.info" + + +post_install() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + diff --git a/gtk3-print-backends-nocolord/upload b/pony.computer/upload index 1e7a8be..1e7a8be 120000 --- a/gtk3-print-backends-nocolord/upload +++ b/pony.computer/upload |