void-packages/srcpkgs/tworld/patches/destdir.patch
2020-05-04 11:30:20 -05:00

35 lines
1.1 KiB
Diff

--- Makefile.in.orig 2020-05-04 11:25:41.650521047 -0400
+++ Makefile.in 2020-05-04 11:29:37.834294399 -0400
@@ -91,19 +91,19 @@
#
install: tworld
- mkdir -p $(bindir)
- mkdir -p $(sharedir)/sets
- mkdir -p $(sharedir)/data
- mkdir -p $(sharedir)/res
- mkdir -p $(mandir)/man6
- cp -i ./tworld $(bindir)/.
- cp -i sets/*.dac $(sharedir)/sets/.
- cp -i data/*.dat $(sharedir)/data/.
- cp -i res/rc $(sharedir)/res/.
- cp -i res/*.bmp $(sharedir)/res/.
- cp -i res/*.txt $(sharedir)/res/.
- cp -i res/*.wav $(sharedir)/res/.
- cp -i docs/tworld.6 $(mandir)/man6/.
+ mkdir -p $(DESTDIR)/$(bindir)
+ mkdir -p $(DESTDIR)/$(sharedir)/sets
+ mkdir -p $(DESTDIR)/$(sharedir)/data
+ mkdir -p $(DESTDIR)/$(sharedir)/res
+ mkdir -p $(DESTDIR)/$(mandir)/man6
+ cp -i ./tworld $(DESTDIR)/$(bindir)/.
+ cp -i sets/*.dac $(DESTDIR)/$(sharedir)/sets/.
+ cp -i data/*.dat $(DESTDIR)/$(sharedir)/data/.
+ cp -i res/rc $(DESTDIR)/$(sharedir)/res/.
+ cp -i res/*.bmp $(DESTDIR)/$(sharedir)/res/.
+ cp -i res/*.txt $(DESTDIR)/$(sharedir)/res/.
+ cp -i res/*.wav $(DESTDIR)/$(sharedir)/res/.
+ cp -i docs/tworld.6 $(DESTDIR)/$(mandir)/man6/.
all: tworld