From dc05f486ca8fd0bf3ef85604125ada81f28ae9d5 Mon Sep 17 00:00:00 2001 From: mar77i Date: Sat, 3 Sep 2016 13:28:48 +0200 Subject: PKGBUILD: assume $srcdir, as noted in PKGBUILD(5) --- PKGBUILD | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index 314d143..6221c6b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -19,13 +19,13 @@ provides=("${_pkgname}") conflicts=("${_pkgname}") pkgver() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" git log -1 --format='%cd.%h' --date=short | tr -d - } prepare() { local file - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" sed \ -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \ -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \ @@ -52,12 +52,12 @@ prepare() { } build() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 } package() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" make PREFIX=/usr DESTDIR="${pkgdir}" install install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README" -- cgit v1.2.3