aboutsummaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authormar77i <mar77i@mar77i.ch>2016-09-03 13:28:48 +0200
committermar77i <mar77i@mar77i.ch>2016-09-03 13:28:48 +0200
commitdc05f486ca8fd0bf3ef85604125ada81f28ae9d5 (patch)
tree5809c8dbf510edef3cb4c2d91f5646f3c882da5f /PKGBUILD
parent89c41b34fbbef7e071d88d421e63ab89ef620f1b (diff)
downloadAUR-dc05f486ca8fd0bf3ef85604125ada81f28ae9d5.tar.gz
AUR-dc05f486ca8fd0bf3ef85604125ada81f28ae9d5.tar.zst
AUR-dc05f486ca8fd0bf3ef85604125ada81f28ae9d5.zip
PKGBUILD: assume $srcdir, as noted in PKGBUILD(5)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 314d143..6221c6b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,13 +19,13 @@ provides=("${_pkgname}")
19conflicts=("${_pkgname}") 19conflicts=("${_pkgname}")
20 20
21pkgver() { 21pkgver() {
22 cd "${srcdir}/${_pkgname}" 22 cd "${_pkgname}"
23 git log -1 --format='%cd.%h' --date=short | tr -d - 23 git log -1 --format='%cd.%h' --date=short | tr -d -
24} 24}
25 25
26prepare() { 26prepare() {
27 local file 27 local file
28 cd "${srcdir}/${_pkgname}" 28 cd "${_pkgname}"
29 sed \ 29 sed \
30 -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \ 30 -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \
31 -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \ 31 -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \
@@ -52,12 +52,12 @@ prepare() {
52} 52}
53 53
54build() { 54build() {
55 cd "${srcdir}/${_pkgname}" 55 cd "${_pkgname}"
56 make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 56 make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
57} 57}
58 58
59package() { 59package() {
60 cd "${srcdir}/${_pkgname}" 60 cd "${_pkgname}"
61 make PREFIX=/usr DESTDIR="${pkgdir}" install 61 make PREFIX=/usr DESTDIR="${pkgdir}" install
62 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" 62 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
63 install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README" 63 install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"