From bce25bac36664a71d096b372ddcf69a0c1be7ad7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 11 Dec 2017 00:02:27 +0100 Subject: Update sleeping-getty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sleeping-getty/PKGBUILD | 22 +++++++++------------- sleeping-getty/sleeping-getty.install | 20 -------------------- 2 files changed, 9 insertions(+), 33 deletions(-) delete mode 100644 sleeping-getty/sleeping-getty.install (limited to 'sleeping-getty') diff --git a/sleeping-getty/PKGBUILD b/sleeping-getty/PKGBUILD index 7a7007a..9adef5c 100644 --- a/sleeping-getty/PKGBUILD +++ b/sleeping-getty/PKGBUILD @@ -1,28 +1,24 @@ # Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> pkgname=sleeping-getty -pkgver=1.0.1 +pkgver=1.1 pkgrel=1 pkgdesc="Do not start a fullblown getty before it is necessary" arch=(i686 x86_64) url="https://github.com/maandree/sleeping-getty" -license=('GPL3' 'custom:GFDL1.3') -depends=(linux glibc) -makedepends=(linux-api-headers glibc make coreutils gcc 'texinfo>=4.11') -install=$pkgname.install -source=($url/archive/$pkgver.tar.gz) -sha256sums=(f0844dc0f232fd83da1b18063e0850209996b66338120035c17c94cd8326dc31) - +license=('custom:ISC') +depends=() +makedepends=(linux-api-headers) +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha256sums=(7d7303e8c7f6d543d33a1c2686f000362c42764821bf4346af7004124edb4136) build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr --sbindir=/usr/bin OPTIMISE=-Os - make + make PREFIX=/usr } - package() { cd "$srcdir/$pkgname-$pkgver" - make install N=: DESTDIR="$pkgdir" + make PREFIX=/usr install DESTDIR="$pkgdir" + mv -- "$pkgdir/usr/sbin" "$pkgdir/usr/bin" } - diff --git a/sleeping-getty/sleeping-getty.install b/sleeping-getty/sleeping-getty.install deleted file mode 100644 index d66a6b1..0000000 --- a/sleeping-getty/sleeping-getty.install +++ /dev/null @@ -1,20 +0,0 @@ -_file="sleeping-getty" - -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 -} - -- cgit v1.2.3-70-g09d2