diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 37 | ||||
-rw-r--r-- | dist/archlinux/stable/PKGBUILD | 14 |
2 files changed, 30 insertions, 21 deletions
@@ -24,6 +24,7 @@ BOOKDIR=info/ .PHONY: all all: code info +.PHONY: code bash java code: bash java bash: adjbacklight.install java: Adjbacklight.class @@ -35,6 +36,7 @@ adjbacklight.install: adjbacklight cp "$<" "$@" sed -i 's:\$${BASH_SOURCE%/\*}:$(PREFIX)$(BINCLASS):g' "adjbacklight.install" +.PHONY: info info: $(BOOK).info.gz %.info: $(BOOKDIR)%.texinfo $(MAKEINFO) "$<" @@ -42,6 +44,7 @@ info: $(BOOK).info.gz gzip -9c < "$<" > "$@" +.PHONY: pdf pdf: $(BOOK).pdf %.pdf: $(BOOKDIR)%.texinfo texi2pdf "$<" @@ -55,6 +58,7 @@ pdf.xz: $(BOOK).pdf.xz xz -e9 < "$<" > "$@" +.PHONY: dvi dvi: $(BOOK).dvi %.dvi: $(BOOKDIR)%.texinfo $(TEXI2DVI) "$<" @@ -70,31 +74,36 @@ dvi.xz: $(BOOK).dvi.xz # install to system +.PHONY: install install: install-cmd install-license install-info +.PHONY: install-cmd install-cmd: adjbacklight.install Adjbacklight.class - mkdir -p "$(DESTDIR)$(PREFIX)$(BIN)" - mkdir -p "$(DESTDIR)$(PREFIX)$(BINCLASS)" - install -m 755 "adjbacklight.install" "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)" - install -m 644 "Adjbacklight.class" "$(DESTDIR)$(PREFIX)$(BINCLASS)/Adjbacklight.class" + install -d -- "$(DESTDIR)$(PREFIX)$(BIN)" + install -d -- "$(DESTDIR)$(PREFIX)$(BINCLASS)" + install -m755 -- "adjbacklight.install" "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)" + install -m644 -- "Adjbacklight.class" "$(DESTDIR)$(PREFIX)$(BINCLASS)/Adjbacklight.class" +.PHONY: install-license install-license: - mkdir -p "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)" - install -m 644 COPYING LICENSE "$(DESTDIR)$(PREFIX)$(DATA)$(LICENSES)/$(PKGNAME)" + install -d -- "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)" + install -m644 -- COPYING LICENSE "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)" +.PHONY: install-info install-info: $(BOOK).info.gz - mkdir -p "$(DESTDIR)$(PREFIX)$(DATA)/info" - install -m 644 "$(BOOK).info.gz" "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz" + install -d -- "$(DESTDIR)$(PREFIX)$(DATA)/info" + install -m644 -- "$(BOOK).info.gz" "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz" # remove files created by `install` +.PHONY: uninstall uninstall: - -rm "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)" - -rm "$(DESTDIR)$(PREFIX)$(BINCLASS)/Adjbacklight.class" - -rm "$(DESTDIR)$(PREFIX)$(DATA)$(LICENSES)/$(PKGNAME)/COPYING" - -rm "$(DESTDIR)$(PREFIX)$(DATA)$(LICENSES)/$(PKGNAME)/LICENSE" - -rmdir "$(DESTDIR)$(PREFIX)$(DATA)$(LICENSES)/$(PKGNAME)" - -rm "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz" + -rm -- "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)" + -rm -- "$(DESTDIR)$(PREFIX)$(BINCLASS)/Adjbacklight.class" + -rm -- "$(DESTDIR)$(PREFIX)$(DATA)$(LICENSES)/$(PKGNAME)/COPYING" + -rm -- "$(DESTDIR)$(PREFIX)$(DATA)$(LICENSES)/$(PKGNAME)/LICENSE" + -rm -d -- "$(DESTDIR)$(PREFIX)$(DATA)$(LICENSES)/$(PKGNAME)" + -rm -- "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz" # remove files created by `all` diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD index c22b70a..e06d18f 100644 --- a/dist/archlinux/stable/PKGBUILD +++ b/dist/archlinux/stable/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> pkgname=adjbacklight -pkgver=4.1 +pkgver=6 pkgrel=1 pkgdesc="Convient method for adjusting the backlight on your portable computer" arch=('any') @@ -10,15 +10,15 @@ depends=('java-runtime>=6') makedepends=('java-environment>=6' 'bash') provides=('adjbacklight') conflicts=('adjbacklight') -source=(https://github.com/maandree/adjbacklight/tarball/4.1) -md5sums=(d95432aa9216c68966e92d8be14483a6) +source=(https://github.com/maandree/adjbacklight/archive/${pkgver}.tar.gz) +sha256sums=(8f8dc4307368534abd28560ee8447ca0be389c22b3e6398190b3af884f1fa42a) build() { - cd maandree-adjbacklight-* - make -B DESTDIR="$pkgdir/" + cd "${srcdir}/adjbacklight-${pkgver}" + make -B DESTDIR="${pkgdir}/" } package() { - cd maandree-adjbacklight-* - make DESTDIR="$pkgdir/" install + cd "${srcdir}/adjbacklight-${pkgver}" + make DESTDIR="${pkgdir}/" install } |